diff src/imap/imap-fetch.c @ 6411:6a64e64fa3a3 HEAD

Renamed __attr_*__ to ATTR_*. Renamed __attrs_used__ to ATTRS_DEFINED.
author Timo Sirainen <tss@iki.fi>
date Sun, 16 Sep 2007 11:40:56 +0300
parents eb7c9d8ece54
children 65c69a53a7be
line wrap: on
line diff
--- a/src/imap/imap-fetch.c	Sun Sep 16 11:31:27 2007 +0300
+++ b/src/imap/imap-fetch.c	Sun Sep 16 11:40:56 2007 +0300
@@ -399,7 +399,7 @@
 }
 
 static int fetch_body(struct imap_fetch_context *ctx, struct mail *mail,
-		      void *context __attr_unused__)
+		      void *context ATTR_UNUSED)
 {
 	const char *body;
 
@@ -433,7 +433,7 @@
 }
 
 static int fetch_bodystructure(struct imap_fetch_context *ctx,
-			       struct mail *mail, void *context __attr_unused__)
+			       struct mail *mail, void *context ATTR_UNUSED)
 {
 	const char *bodystructure;
 
@@ -458,7 +458,7 @@
 
 static bool
 fetch_bodystructure_init(struct imap_fetch_context *ctx, const char *name,
-			 const struct imap_arg **args __attr_unused__)
+			 const struct imap_arg **args ATTR_UNUSED)
 {
 	ctx->fetch_data |= MAIL_FETCH_IMAP_BODYSTRUCTURE;
 	imap_fetch_add_handler(ctx, FALSE, FALSE, name,
@@ -468,7 +468,7 @@
 }
 
 static int fetch_envelope(struct imap_fetch_context *ctx, struct mail *mail,
-			  void *context __attr_unused__)
+			  void *context ATTR_UNUSED)
 {
 	const char *envelope;
 
@@ -491,7 +491,7 @@
 
 static bool
 fetch_envelope_init(struct imap_fetch_context *ctx, const char *name,
-		    const struct imap_arg **args __attr_unused__)
+		    const struct imap_arg **args ATTR_UNUSED)
 {
 	ctx->fetch_data |= MAIL_FETCH_IMAP_ENVELOPE;
 	imap_fetch_add_handler(ctx, FALSE, FALSE, name,
@@ -501,7 +501,7 @@
 }
 
 static int fetch_flags(struct imap_fetch_context *ctx, struct mail *mail,
-		       void *context __attr_unused__)
+		       void *context ATTR_UNUSED)
 {
 	enum mail_flags flags;
 	const char *const *keywords;
@@ -525,7 +525,7 @@
 
 static bool
 fetch_flags_init(struct imap_fetch_context *ctx, const char *name,
-		 const struct imap_arg **args __attr_unused__)
+		 const struct imap_arg **args ATTR_UNUSED)
 {
 	ctx->flags_have_handler = TRUE;
 	ctx->fetch_data |= MAIL_FETCH_FLAGS;
@@ -534,7 +534,7 @@
 }
 
 static int fetch_internaldate(struct imap_fetch_context *ctx, struct mail *mail,
-			      void *context __attr_unused__)
+			      void *context ATTR_UNUSED)
 {
 	time_t date;
 
@@ -548,7 +548,7 @@
 
 static bool
 fetch_internaldate_init(struct imap_fetch_context *ctx, const char *name,
-			const struct imap_arg **args __attr_unused__)
+			const struct imap_arg **args ATTR_UNUSED)
 {
 	ctx->fetch_data |= MAIL_FETCH_RECEIVED_DATE;
 	imap_fetch_add_handler(ctx, TRUE, FALSE, name,
@@ -558,15 +558,15 @@
 }
 
 static int fetch_uid(struct imap_fetch_context *ctx, struct mail *mail,
-		     void *context __attr_unused__)
+		     void *context ATTR_UNUSED)
 {
 	str_printfa(ctx->cur_str, "UID %u ", mail->uid);
 	return 1;
 }
 
 static bool
-fetch_uid_init(struct imap_fetch_context *ctx __attr_unused__, const char *name,
-	       const struct imap_arg **args __attr_unused__)
+fetch_uid_init(struct imap_fetch_context *ctx ATTR_UNUSED, const char *name,
+	       const struct imap_arg **args ATTR_UNUSED)
 {
 	imap_fetch_add_handler(ctx, TRUE, FALSE, name, NULL, fetch_uid, NULL);
 	return TRUE;