Mercurial > pidgin
comparison libpurple/protocols/silc10/util.c @ 31086:a8cc50c2279f
Remove trailing whitespace
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Tue, 04 Jan 2011 06:55:30 +0000 |
parents | e0bcb8cfda74 |
children |
comparison
equal
deleted
inserted
replaced
31085:44f53d3fc54f | 31086:a8cc50c2279f |
---|---|
633 return strdup("image/jpeg"); | 633 return strdup("image/jpeg"); |
634 else if (!g_ascii_strcasecmp(".gif", ct)) | 634 else if (!g_ascii_strcasecmp(".gif", ct)) |
635 return strdup("image/gif"); | 635 return strdup("image/gif"); |
636 else if (!g_ascii_strcasecmp(".tiff", ct)) | 636 else if (!g_ascii_strcasecmp(".tiff", ct)) |
637 return strdup("image/tiff"); | 637 return strdup("image/tiff"); |
638 | 638 |
639 return NULL; | 639 return NULL; |
640 } | 640 } |
641 | 641 |
642 /* Checks if message has images, and assembles MIME message if it has. | 642 /* Checks if message has images, and assembles MIME message if it has. |
643 If only one image is present, creates simple MIME image message. If | 643 If only one image is present, creates simple MIME image message. If |
644 there are multiple images and/or text with images multipart MIME | 644 there are multiple images and/or text with images multipart MIME |
645 message is created. */ | 645 message is created. */ |
646 | 646 |
647 SilcDList silcpurple_image_message(const char *msg, SilcUInt32 *mflags) | 647 SilcDList silcpurple_image_message(const char *msg, SilcUInt32 *mflags) |
648 { | 648 { |
649 SilcMime mime = NULL, p; | 649 SilcMime mime = NULL, p; |
745 char b[32]; | 745 char b[32]; |
746 mime = silc_mime_alloc(); | 746 mime = silc_mime_alloc(); |
747 silc_mime_add_field(mime, "MIME-Version", "1.0"); | 747 silc_mime_add_field(mime, "MIME-Version", "1.0"); |
748 g_snprintf(b, sizeof(b), "b%4X%4X", | 748 g_snprintf(b, sizeof(b), "b%4X%4X", |
749 (unsigned int)time(NULL), | 749 (unsigned int)time(NULL), |
750 silc_dlist_count(parts)); | 750 silc_dlist_count(parts)); |
751 silc_mime_set_multipart(mime, "mixed", b); | 751 silc_mime_set_multipart(mime, "mixed", b); |
752 silc_dlist_start(parts); | 752 silc_dlist_start(parts); |
753 while ((p = silc_dlist_get(parts)) != SILC_LIST_END) | 753 while ((p = silc_dlist_get(parts)) != SILC_LIST_END) |
754 silc_mime_add_multipart(mime, p); | 754 silc_mime_add_multipart(mime, p); |
755 } else { | 755 } else { |