]> git.ipfire.org Git - thirdparty/util-linux.git/commit
pg: add const qualifiers where suitable
authorSami Kerola <kerolasa@iki.fi>
Mon, 8 Oct 2012 07:08:12 +0000 (08:08 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 15 Oct 2012 14:34:59 +0000 (16:34 +0200)
commit8b8f3fa5d9bac9bab0a9d87bc1a9b1a6a4fe63b2
tree1230956b3861e57e886f208cb68b8678ba4caf9d
parent5ad961719df99fc17c08c3ac5428a7f8c979b468
pg: add const qualifiers where suitable

Includes a fix also to one assignment warning (see below).

text-utils/pg.c:1477:24: warning: assignment discards 'const' qualifier \
from pointer target type [enabled by default]

[kzak@redhat.com: - use const char rather than xstrdup() for static /bin/sh string]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
text-utils/pg.c