summaryrefslogtreecommitdiffstats
path: root/text-utils/pg.c
diff options
context:
space:
mode:
authorPeter Breitenlohner2009-07-20 11:35:47 +0200
committerKarel Zak2009-07-20 15:23:40 +0200
commitd5004be1f576e8b51617e608c939959ec481ce0f (patch)
tree9d1c8119277718690c6c088dec1e102aa0dce464 /text-utils/pg.c
parentscriptreplay: fix typo in error message (diff)
downloadkernel-qcow2-util-linux-d5004be1f576e8b51617e608c939959ec481ce0f.tar.gz
kernel-qcow2-util-linux-d5004be1f576e8b51617e608c939959ec481ce0f.tar.xz
kernel-qcow2-util-linux-d5004be1f576e8b51617e608c939959ec481ce0f.zip
pg: compiler warning with NLS disabled
Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
Diffstat (limited to 'text-utils/pg.c')
-rw-r--r--text-utils/pg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/text-utils/pg.c b/text-utils/pg.c
index 30c67009e..b2c4d8735 100644
--- a/text-utils/pg.c
+++ b/text-utils/pg.c
@@ -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;