diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-03-26 00:44:34 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-03-26 00:44:34 +0800 |
commit | b610a4c040e74812aca713385d134f2430f879f1 (patch) | |
tree | a7ade1b25a13a1099d9300dfc819fb30c567046f /camel | |
parent | 264ed440fda26153d23487e8fa6e169ab61706ef (diff) | |
download | gsoc2013-evolution-b610a4c040e74812aca713385d134f2430f879f1.tar gsoc2013-evolution-b610a4c040e74812aca713385d134f2430f879f1.tar.gz gsoc2013-evolution-b610a4c040e74812aca713385d134f2430f879f1.tar.bz2 gsoc2013-evolution-b610a4c040e74812aca713385d134f2430f879f1.tar.lz gsoc2013-evolution-b610a4c040e74812aca713385d134f2430f879f1.tar.xz gsoc2013-evolution-b610a4c040e74812aca713385d134f2430f879f1.tar.zst gsoc2013-evolution-b610a4c040e74812aca713385d134f2430f879f1.zip |
Don't use setv when we don't need the stdarg interface.
2003-03-25 Jeffrey Stedfast <fejj@ximian.com>
* camel-service.c (camel_gethostbyaddr): Don't use setv when we
don't need the stdarg interface.
(camel_gethostbyname): Same.
svn path=/trunk/; revision=20506
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 6 | ||||
-rw-r--r-- | camel/camel-service.c | 12 |
2 files changed, 13 insertions, 5 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 9b22d11fe9..0eb07bf1e3 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,9 @@ +2003-03-25 Jeffrey Stedfast <fejj@ximian.com> + + * camel-service.c (camel_gethostbyaddr): Don't use setv when we + don't need the stdarg interface. + (camel_gethostbyname): Same. + 2003-03-24 Jeffrey Stedfast <fejj@ximian.com> * camel-folder-search.c (search_user_tag): This expression can diff --git a/camel/camel-service.c b/camel/camel-service.c index 13daa75492..67d49c317f 100644 --- a/camel/camel-service.c +++ b/camel/camel-service.c @@ -734,7 +734,7 @@ camel_gethostbyname (const char *name, CamelException *ex) g_return_val_if_fail(name != NULL, NULL); if (camel_operation_cancel_check(NULL)) { - camel_exception_setv(ex, CAMEL_EXCEPTION_USER_CANCEL, _("Cancelled")); + camel_exception_set (ex, CAMEL_EXCEPTION_USER_CANCEL, _("Cancelled")); return NULL; } @@ -796,9 +796,11 @@ camel_gethostbyname (const char *name, CamelException *ex) if (msg->herr) { if (!camel_exception_is_set(ex)) { if (msg->herr == HOST_NOT_FOUND || msg->herr == NO_DATA) - camel_exception_setv(ex, 1, _("Host lookup failed: %s: host not found"), name); + camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, + _("Host lookup failed: %s: host not found"), name); else - camel_exception_setv(ex, 1, _("Host lookup failed: %s: unknown reason"), name); + camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, + _("Host lookup failed: %s: unknown reason"), name); } g_free(msg->hostbufmem); g_free(msg); @@ -844,7 +846,7 @@ camel_gethostbyaddr (const char *addr, int len, int type, CamelException *ex) g_return_val_if_fail (addr != NULL, NULL); if (camel_operation_cancel_check (NULL)) { - camel_exception_setv (ex, CAMEL_EXCEPTION_USER_CANCEL, _("Cancelled")); + camel_exception_set (ex, CAMEL_EXCEPTION_USER_CANCEL, _("Cancelled")); return NULL; } @@ -887,7 +889,7 @@ camel_gethostbyaddr (const char *addr, int len, int type, CamelException *ex) pthread_cancel (id); } else if (FD_ISSET(cancel_fd, &rdset)) { d(printf ("Cancelling lookup thread\n")); - camel_exception_setv (ex, CAMEL_EXCEPTION_USER_CANCEL, _("Cancelled")); + camel_exception_set (ex, CAMEL_EXCEPTION_USER_CANCEL, _("Cancelled")); pthread_cancel (id); } else { struct _lookup_msg *reply = (struct _lookup_msg *) e_msgport_get (reply_port); |