comparison 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
comparison
equal deleted inserted replaced
110745:af2db97ca17a 110746:5c1a707ab452
91 fatal ("%s", "virtual memory exhausted"); 91 fatal ("%s", "virtual memory exhausted");
92 return result; 92 return result;
93 } 93 }
94 94
95 char * 95 char *
96 xstrdup (char *str) 96 xstrdup (const char *str)
97 { 97 {
98 char *buf = xmalloc (strlen (str) + 1); 98 char *buf = xmalloc (strlen (str) + 1);
99 (void) strcpy (buf, str); 99 (void) strcpy (buf, str);
100 return (buf); 100 return (buf);
101 } 101 }