]> Pileus Git - ~andy/fetchmail/commitdiff
Clean up: rely on C compiler string concatenation rather than calling printf for...
authorMatthias Andree <matthias.andree@gmx.de>
Sat, 30 Jul 2005 21:32:45 +0000 (21:32 -0000)
committerMatthias Andree <matthias.andree@gmx.de>
Sat, 30 Jul 2005 21:32:45 +0000 (21:32 -0000)
svn path=/trunk/; revision=4191

conf.c

diff --git a/conf.c b/conf.c
index 66daee9789643ebb783166a4347aa361aaf58df9..083e08a39660a20a9d27714474a4d215b74a85e4 100644 (file)
--- a/conf.c
+++ b/conf.c
@@ -149,47 +149,47 @@ void dump_config(struct runctl *runp, struct query *querylist)
      * This should be approximately in sync with the -V option dumping 
      * in fetchmail.c.
      */
-    printf("feature_options = (");
+    printf("feature_options = ("
 #ifdef POP2_ENABLE
-    printf("'pop2',");
+    "'pop2',"
 #endif /* POP2_ENABLE */
 #ifdef POP3_ENABLE
-    printf("'pop3',");
+    "'pop3',"
 #endif /* POP3_ENABLE */
 #ifdef IMAP_ENABLE
-    printf("'imap',");
+    "'imap',"
 #endif /* IMAP_ENABLE */
 #ifdef GSSAPI
-    printf("'gssapi',");
+    "'gssapi',"
 #endif /* GSSAPI */
 #if defined(KERBEROS_V4)
-    printf("'kerberos',");
+    "'kerberos',"
 #endif /* defined(IMAP4) */
 #ifdef RPA_ENABLE
-    printf("'rpa',");
+    "'rpa',"
 #endif /* RPA_ENABLE */
 #ifdef SDPS_ENABLE
-    printf("'sdps',");
+    "'sdps',"
 #endif /* SDPS_ENABLE */
 #ifdef ETRN_ENABLE
-    printf("'etrn',");
+    "'etrn',"
 #endif /* ETRN_ENABLE */
 #ifdef ODMR_ENABLE
-    printf("'odmr',");
+    "'odmr',"
 #endif /* ODMR_ENABLE */
 #ifdef SSL_ENABLE
-    printf("'ssl',");
+    "'ssl',"
 #endif /* SSL_ENABLE */
 #ifdef OPIE_ENABLE
-    printf("'opie',");
+    "'opie',"
 #endif /* OPIE_ENABLE */
 #ifdef INET6_ENABLE
-    printf("'inet6',");
+    "'inet6',"
 #endif /* INET6_ENABLE */
 #ifdef NET_SECURITY
-    printf("'netsec',");
+    "'netsec',"
 #endif /* NET_SECURITY */
-    printf(")\n");
+    ")\n");
 
     fputs("# Start of configuration initializer\n", stdout);
     fputs("fetchmailrc = ", stdout);