diff lib-src/sorted-doc.c @ 110746:5c1a707ab452

Fix compilation warnings. * lib-src/test-distrib.c (cool_read): * lib-src/movemail.c (main, concat): * lib-src/make-docfile.c (scan_file, write_c_args): * emacsclient.c (get_server_config): Fix -Wconversion warning. (egetenv): Move conditional definition earlier. (progname): Use const. * lib-src/sorted-doc.c (xstrdup): Use const.
author Dan Nicolaescu <dann@ics.uci.edu>
date Sun, 03 Oct 2010 16:35:22 -0700
parents fdbd24f8d999
children
line wrap: on
line diff
--- a/lib-src/sorted-doc.c	Mon Oct 04 00:37:37 2010 +0200
+++ b/lib-src/sorted-doc.c	Sun Oct 03 16:35:22 2010 -0700
@@ -93,7 +93,7 @@
 }
 
 char *
-xstrdup (char *str)
+xstrdup (const char *str)
 {
   char *buf = xmalloc (strlen (str) + 1);
   (void) strcpy (buf, str);