]> err.no Git - util-linux/commitdiff
pg: compiler warning with NLS disabled
authorPeter Breitenlohner <peb@mppmu.mpg.de>
Mon, 20 Jul 2009 09:35:47 +0000 (11:35 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 20 Jul 2009 13:23:40 +0000 (15:23 +0200)
Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
text-utils/pg.c

index 30c67009e2b2646ba97333ba5ffdad3fb49295f1..b2c4d873520a6fa2a163cf35c183d296763674d7 100644 (file)
@@ -220,7 +220,7 @@ smalloc(size_t s)
 {
         char *m = (char *)malloc(s);
         if (m == NULL) {
-               char *p = _("Out of memory\n");
+               const char *p = _("Out of memory\n");
                 write(2, p, strlen(p));
                 quit(++exitstatus);
         }
@@ -1507,7 +1507,7 @@ found_bw:
                                /*
                                 * Help!
                                 */
-                               char *help = _(helpscreen);
+                               const char *help = _(helpscreen);
                                write(1, copyright + 4, strlen(copyright + 4));
                                write(1, help, strlen(help));
                                goto newcmd;