changeset 52069:76d453ac3c4f

(main): Fix having macros in a printf statement.
author Juanma Barranquero <lekktu@gmail.com>
date Mon, 28 Jul 2003 22:10:30 +0000
parents f1581f949f71
children 318ea3203ba5
files lib-src/emacsclient.c lib-src/movemail.c
diffstat 2 files changed, 7 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/emacsclient.c	Mon Jul 28 22:09:47 2003 +0000
+++ b/lib-src/emacsclient.c	Mon Jul 28 22:10:30 2003 +0000
@@ -438,13 +438,13 @@
   if (cwd == 0)
     {
       /* getwd puts message in STRING if it fails.  */
-      fprintf (stderr, "%s: %s (%s)\n", argv[0],
+
 #ifdef HAVE_GETCWD
-	       "Cannot get current working directory",
+      fprintf (stderr, "%s: %s (%s)\n", argv[0],
+	       "Cannot get current working directory", strerror (errno));
 #else
-	       string,
+      fprintf (stderr, "%s: %s (%s)\n", argv[0], string, strerror (errno));
 #endif
-	       strerror (errno));
       fail (argc, argv);
     }
 
--- a/lib-src/movemail.c	Mon Jul 28 22:09:47 2003 +0000
+++ b/lib-src/movemail.c	Mon Jul 28 22:10:30 2003 +0000
@@ -228,13 +228,12 @@
 #endif
       )
     {
+#ifdef MAIL_USE_POP
       fprintf (stderr, "Usage: movemail [-p] inbox destfile%s\n",
-#ifdef MAIL_USE_POP
-	       " [POP-password]"
+	       " [POP-password]");
 #else
-	       ""
+      fprintf (stderr, "Usage: movemail [-p] inbox destfile%s\n", "");
 #endif
-	       );
       exit (1);
     }