From d60b05254d636698b63466afd7f4c1c9c2ec080d Mon Sep 17 00:00:00 2001 From: Ken Hughes Date: Sun, 11 Mar 2007 17:31:27 +0000 Subject: Remove gcc compiler warnings from various files. --- source/blender/imbuf/intern/cineon/cineonlib.c | 32 +++++++++++++------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'source/blender/imbuf/intern/cineon') diff --git a/source/blender/imbuf/intern/cineon/cineonlib.c b/source/blender/imbuf/intern/cineon/cineonlib.c index 91973927fab..20f4e0d4de4 100644 --- a/source/blender/imbuf/intern/cineon/cineonlib.c +++ b/source/blender/imbuf/intern/cineon/cineonlib.c @@ -67,12 +67,12 @@ fillCineonFileInfo(CineonFile* cineon, CineonFileInformation* fileInfo, const ch static void dumpCineonFileInfo(CineonFileInformation* fileInfo) { d_printf("\n--File Information--\n"); - d_printf("Magic: %8.8lX\n", ntohl(fileInfo->magic_num)); - d_printf("Image Offset %ld\n", ntohl(fileInfo->image_offset)); - d_printf("Generic Header size %ld\n", ntohl(fileInfo->gen_hdr_size)); - d_printf("Industry Header size %ld\n", ntohl(fileInfo->ind_hdr_size)); - d_printf("User Data size %ld\n", ntohl(fileInfo->user_data_size)); - d_printf("File size %ld\n", ntohl(fileInfo->file_size)); + d_printf("Magic: %8.8lX\n", (unsigned long)ntohl(fileInfo->magic_num)); + d_printf("Image Offset %ld\n", (long)ntohl(fileInfo->image_offset)); + d_printf("Generic Header size %ld\n", (long)ntohl(fileInfo->gen_hdr_size)); + d_printf("Industry Header size %ld\n", (long)ntohl(fileInfo->ind_hdr_size)); + d_printf("User Data size %ld\n", (long)ntohl(fileInfo->user_data_size)); + d_printf("File size %ld\n", (long)ntohl(fileInfo->file_size)); d_printf("Version \"%s\"\n", fileInfo->vers); d_printf("File name \"%s\"\n", fileInfo->file_name); d_printf("Creation date \"%s\"\n", fileInfo->create_date); @@ -112,11 +112,11 @@ dumpCineonChannelInfo(CineonChannelInformation* chan) { default: d_printf(" (unknown)\n"); break; } d_printf(" Bits per pixel %d\n", chan->bits_per_pixel); - d_printf(" Pixels per line %ld\n", ntohl(chan->pixels_per_line)); - d_printf(" Lines per image %ld\n", ntohl(chan->lines_per_image)); - d_printf(" Ref low data %ld\n", ntohl(chan->ref_low_data)); + d_printf(" Pixels per line %ld\n", (long)ntohl(chan->pixels_per_line)); + d_printf(" Lines per image %ld\n", (long)ntohl(chan->lines_per_image)); + d_printf(" Ref low data %ld\n", (long)ntohl(chan->ref_low_data)); d_printf(" Ref low quantity %f\n", ntohf(chan->ref_low_quantity)); - d_printf(" Ref high data %ld\n", ntohl(chan->ref_high_data)); + d_printf(" Ref high data %ld\n", (long)ntohl(chan->ref_high_data)); d_printf(" Ref high quantity %f\n", ntohf(chan->ref_high_quantity)); } @@ -231,8 +231,8 @@ dumpCineonFormatInfo(CineonFormatInformation* formatInfo) { } else { d_printf(" positive\n"); } - d_printf("End of line padding %ld\n", ntohl(formatInfo->line_padding)); - d_printf("End of channel padding %ld\n", ntohl(formatInfo->channel_padding)); + d_printf("End of line padding %ld\n", (long)ntohl(formatInfo->line_padding)); + d_printf("End of channel padding %ld\n", (long)ntohl(formatInfo->channel_padding)); } static void @@ -256,8 +256,8 @@ fillCineonOriginationInfo(CineonFile* cineon, static void dumpCineonOriginationInfo(CineonOriginationInformation* originInfo) { d_printf("\n--Origination Information--\n"); - d_printf("X offset %ld\n", ntohl(originInfo->x_offset)); - d_printf("Y offset %ld\n", ntohl(originInfo->y_offset)); + d_printf("X offset %ld\n", (long)ntohl(originInfo->x_offset)); + d_printf("Y offset %ld\n", (long)ntohl(originInfo->y_offset)); d_printf("File name \"%s\"\n", originInfo->file_name); d_printf("Creation date \"%s\"\n", originInfo->create_date); d_printf("Creation time \"%s\"\n", originInfo->create_time); @@ -525,7 +525,7 @@ cineonOpen(const char* filename) { /* let's assume cineon files are always network order */ if (header.fileInfo.magic_num != ntohl(CINEON_FILE_MAGIC)) { if (verbose) d_printf("Bad magic number %8.8lX in \"%s\".\n", - ntohl(header.fileInfo.magic_num), filename); + (unsigned long)ntohl(header.fileInfo.magic_num), filename); cineonClose(cineon); return 0; } @@ -624,7 +624,7 @@ cineonOpenFromMem(unsigned char *mem, unsigned int size) { /* let's assume cineon files are always network order */ if (header.fileInfo.magic_num != ntohl(CINEON_FILE_MAGIC)) { - if (verbose) d_printf("Bad magic number %8.8lX in\n", ntohl(header.fileInfo.magic_num)); + if (verbose) d_printf("Bad magic number %8.8lX in\n", (unsigned long)ntohl(header.fileInfo.magic_num)); cineonClose(cineon); return 0; -- cgit v1.2.3