From e60156f567ea6483864606c461576268e447c5fd Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 31 Dec 2007 08:46:19 +0000 Subject: fixed 2 signedness issues git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10920 67ed7778-7388-44ab-90cf-0a291f65f57c --- libgphoto2/jpeg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libgphoto2/jpeg.c') diff --git a/libgphoto2/jpeg.c b/libgphoto2/jpeg.c index d9b0e1225..cd16c12ee 100644 --- a/libgphoto2/jpeg.c +++ b/libgphoto2/jpeg.c @@ -63,7 +63,7 @@ chunk *gpi_jpeg_chunk_new(int length) } mychunk->size=length; /* printf("New chunk of size %i\n", mychunk->size); */ - mychunk->data = (char *)malloc(length); + mychunk->data = malloc(length); return mychunk; } @@ -368,7 +368,7 @@ char gpi_jpeg_write(CameraFile *file, const char *filename, jpeg *myjpeg) CHECK_RESULT (gp_file_set_name (file, filename)); CHECK_RESULT (gp_file_set_mime_type(file, GP_MIME_JPEG)); for (x=0; xcount; x++) - CHECK_RESULT (gp_file_append(file, myjpeg->marker[x]->data, myjpeg->marker[x]->size)); + CHECK_RESULT (gp_file_append(file, (char*)myjpeg->marker[x]->data, myjpeg->marker[x]->size)); return 1; } #endif -- cgit v1.2.1