summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2008-11-28 15:31:45 -0300
committerJorge Arellano Cid <jcid@dillo.org>2008-11-28 15:31:45 -0300
commit163277cb82fa38a5e7a5b1728f5d9535efb2c921 (patch)
treecd86bfef3630561647f5fceb29da8a8632abd739
parenta421e30f41308a9e76421460ff44768f45842bf7 (diff)
- Minor compiler warning fix.
-rw-r--r--src/jpeg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jpeg.c b/src/jpeg.c
index 05e4f2d4..9e548a7c 100644
--- a/src/jpeg.c
+++ b/src/jpeg.c
@@ -278,14 +278,14 @@ static void Jpeg_write(DilloJpeg *jpeg, void *Buf, uint_t BufSize)
/* decompression step 3 (see libjpeg.doc) */
if (jpeg_read_header(&(jpeg->cinfo), TRUE) != JPEG_SUSPENDED) {
type = DILLO_IMG_TYPE_GRAY;
- if (jpeg->cinfo.num_components == 1)
+ if (jpeg->cinfo.num_components == 1) {
type = DILLO_IMG_TYPE_GRAY;
- else if (jpeg->cinfo.num_components == 3)
+ } else if (jpeg->cinfo.num_components == 3) {
type = DILLO_IMG_TYPE_RGB;
- else
+ } else {
_MSG("jpeg: can't handle %d component images\n",
jpeg->cinfo.num_components);
-
+ }
/*
* If a multiple-scan image is not completely in cache,
* use progressive display, updating as it arrives.