diff options
author | Dan Winship <danw@src.gnome.org> | 2000-03-29 05:12:12 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-03-29 05:12:12 +0800 |
commit | c7ae879700164da8cca08620b8ee8ab745dfb407 (patch) | |
tree | 08b4bc039b368231bd84e3a1edca30d901c82451 /camel/camel-mime-part.c | |
parent | 207652677441264ca1e51d06898b37ea4164c8e2 (diff) | |
download | gsoc2013-evolution-c7ae879700164da8cca08620b8ee8ab745dfb407.tar gsoc2013-evolution-c7ae879700164da8cca08620b8ee8ab745dfb407.tar.gz gsoc2013-evolution-c7ae879700164da8cca08620b8ee8ab745dfb407.tar.bz2 gsoc2013-evolution-c7ae879700164da8cca08620b8ee8ab745dfb407.tar.lz gsoc2013-evolution-c7ae879700164da8cca08620b8ee8ab745dfb407.tar.xz gsoc2013-evolution-c7ae879700164da8cca08620b8ee8ab745dfb407.tar.zst gsoc2013-evolution-c7ae879700164da8cca08620b8ee8ab745dfb407.zip |
fix warnings
svn path=/trunk/; revision=2217
Diffstat (limited to 'camel/camel-mime-part.c')
-rw-r--r-- | camel/camel-mime-part.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c index 6d6ab55a46..1fb3084ad3 100644 --- a/camel/camel-mime-part.c +++ b/camel/camel-mime-part.c @@ -676,12 +676,10 @@ my_write_content_to_stream (CamelMimePart *mime_part, CamelStream *stream) medium = CAMEL_MEDIUM (mime_part); content = medium->content; - if (!content) { - content = camel_medium_get_content_object (mime_part); - } - if (!content) { - return; + content = camel_medium_get_content_object (CAMEL_MEDIUM (mime_part)); + if (!content) + return; } switch (mime_part->encoding) { @@ -875,7 +873,7 @@ my_set_input_stream (CamelDataWrapper *data_wrapper, CamelStream *stream) printf ("Current position = %d\n", content_stream_inf_bound); if (mime_part->content_input_stream) - gtk_object_unref (mime_part->content_input_stream); + gtk_object_unref (GTK_OBJECT (mime_part->content_input_stream)); mime_part->content_input_stream = camel_seekable_substream_new_with_seekable_stream_and_bounds (seekable_stream, content_stream_inf_bound, -1); |