diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-06-27 13:07:56 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-06-27 13:07:56 +0000 |
commit | 5d56b5d1aaa305f0ee003b99bdd85a054c76bc3e (patch) | |
tree | 15eb57ba400aca64732e4e08fda33efde7b42846 /libsieve | |
parent | f69c4bbf9ce09628798d38e10ae23e15e895b3ec (diff) | |
download | mailutils-5d56b5d1aaa305f0ee003b99bdd85a054c76bc3e.tar.gz mailutils-5d56b5d1aaa305f0ee003b99bdd85a054c76bc3e.tar.bz2 |
Minor fixes to get rid of the spurious gcc warnings
Diffstat (limited to 'libsieve')
-rw-r--r-- | libsieve/actions.c | 2 | ||||
-rw-r--r-- | libsieve/extensions/vacation.c | 4 | ||||
-rw-r--r-- | libsieve/prog.c | 4 | ||||
-rw-r--r-- | libsieve/sieve.h | 6 | ||||
-rw-r--r-- | libsieve/sieve.l | 2 |
5 files changed, 9 insertions, 9 deletions
diff --git a/libsieve/actions.c b/libsieve/actions.c index 0fb9d359c..e241447e6 100644 --- a/libsieve/actions.c +++ b/libsieve/actions.c @@ -125,7 +125,7 @@ mu_sieve_get_message_sender (mu_message_t msg, char **ptext) { mu_header_t hdr = NULL; mu_message_get_header (msg, &hdr); - if (rc = mu_header_aget_value (hdr, MU_HEADER_SENDER, &text)) + if ((rc = mu_header_aget_value (hdr, MU_HEADER_SENDER, &text))) rc = mu_header_aget_value (hdr, MU_HEADER_FROM, &text); } diff --git a/libsieve/extensions/vacation.c b/libsieve/extensions/vacation.c index d141c377d..a0de330a4 100644 --- a/libsieve/extensions/vacation.c +++ b/libsieve/extensions/vacation.c @@ -64,7 +64,7 @@ build_mime (mu_sieve_machine_t mach, mu_list_t tags, mu_mime_t *pmime, mu_message_get_body (newmsg, &body); mu_body_get_stream (body, &stream); - if (rc = mu_memory_stream_create (&input, 0, MU_STREAM_RDWR)) + if ((rc = mu_memory_stream_create (&input, 0, MU_STREAM_RDWR))) { mu_sieve_error (mach, _("cannot create temporary stream: %s"), @@ -72,7 +72,7 @@ build_mime (mu_sieve_machine_t mach, mu_list_t tags, mu_mime_t *pmime, return 1; } - if (rc = mu_stream_open (input)) + if ((rc = mu_stream_open (input))) { mu_sieve_error (mach, _("cannot open temporary stream: %s"), diff --git a/libsieve/prog.c b/libsieve/prog.c index 6a5d5ed16..cf7817d60 100644 --- a/libsieve/prog.c +++ b/libsieve/prog.c @@ -1,6 +1,6 @@ /* GNU Mailutils -- a suite of utilities for electronic mail Copyright (C) 1999, 2000, 2001, 2002, 2004, - 2005 Free Software Foundation, Inc. + 2005, 2006 Free Software Foundation, Inc. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -84,7 +84,7 @@ sieve_code_number (long num) } int -sieve_code_string (char *string) +sieve_code_string (const char *string) { sieve_op_t op; diff --git a/libsieve/sieve.h b/libsieve/sieve.h index ba0269543..58ac4d64b 100644 --- a/libsieve/sieve.h +++ b/libsieve/sieve.h @@ -1,5 +1,5 @@ /* GNU Mailutils -- a suite of utilities for electronic mail - Copyright (C) 1999, 2000, 2001, 2002, 2005 Free Software Foundation, Inc. + Copyright (C) 1999, 2000, 2001, 2002, 2005, 2006 Free Software Foundation, Inc. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -31,7 +31,7 @@ typedef union { mu_sieve_value_t *val; mu_list_t list; long number; - char *string; + const char *string; size_t pc; size_t line; } sieve_op_t; @@ -59,7 +59,7 @@ struct sieve_machine { int debug_level; /* Debugging level */ jmp_buf errbuf; /* Target location for non-local exits */ - char *identifier; /* Name of action or test being executed */ + const char *identifier; /* Name of action or test being executed */ mu_mailbox_t mailbox; /* Mailbox to operate upon */ size_t msgno; /* Current message number */ diff --git a/libsieve/sieve.l b/libsieve/sieve.l index 6369652d9..f3e2f5d4b 100644 --- a/libsieve/sieve.l +++ b/libsieve/sieve.l @@ -240,7 +240,7 @@ push_source (const char *name) yyerror (_("recursive inclusion")); return 1; } - if (ctx = ctx_lookup (st.st_ino)) + if ((ctx = ctx_lookup (st.st_ino))) { yyerror (_("recursive inclusion")); if (ctx->prev) |