]> git.eshelyaron.com Git - emacs.git/commitdiff
(main): Fix having macros in a printf statement.
authorJuanma Barranquero <lekktu@gmail.com>
Mon, 28 Jul 2003 22:10:30 +0000 (22:10 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Mon, 28 Jul 2003 22:10:30 +0000 (22:10 +0000)
lib-src/emacsclient.c
lib-src/movemail.c

index 180a79768d30eab8bb22e0998840128003baee56..fc85ba6744861d107d5ef7ad7ccdaf0d0adbe4b5 100644 (file)
@@ -438,13 +438,13 @@ To start the server in Emacs, type \"M-x server-start\".\n",
   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);
     }
 
index 00157f991aea3d70add01b8874310e36dc458738..89714a074237410dfbc53ab362b04f8bc901b912 100644 (file)
@@ -228,13 +228,12 @@ main (argc, argv)
 #endif
       )
     {
-      fprintf (stderr, "Usage: movemail [-p] inbox destfile%s\n",
 #ifdef MAIL_USE_POP
-              " [POP-password]"
+      fprintf (stderr, "Usage: movemail [-p] inbox destfile%s\n",
+              " [POP-password]");
 #else
-              ""
+      fprintf (stderr, "Usage: movemail [-p] inbox destfile%s\n", "");
 #endif
-              );
       exit (1);
     }