summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-13 00:07:26 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-13 00:07:26 -0700
commit38772ec3b5a7216a88676f95b5edc764dd0a23d6 (patch)
tree4e99597fa0e81489c9bd554b3a15fece11161279
parentf53d8511d26a26e9bd6b1bc665f6283f1efd98d9 (diff)
Declare capability_name() as returning const char *
Only used as an argument to printf. Clears gcc warnings: xrandr.c: In function ‘capability_name’: xrandr.c:237:2: warning: return discards ‘const’ qualifier from pointer target type [enabled by default] xrandr.c:239:2: warning: return discards ‘const’ qualifier from pointer target type [enabled by default] xrandr.c:241:2: warning: return discards ‘const’ qualifier from pointer target type [enabled by default] xrandr.c:243:2: warning: return discards ‘const’ qualifier from pointer target type [enabled by default] xrandr.c:245:5: warning: return discards ‘const’ qualifier from pointer target type [enabled by default] Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xrandr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xrandr.c b/xrandr.c
index 0e28a0b..872f81a 100644
--- a/xrandr.c
+++ b/xrandr.c
@@ -229,7 +229,7 @@ reflection_name (Rotation rotation)
return "invalid reflection";
}
-static char *
+static const char *
capability_name (int cap_bit)
{
switch (cap_bit) {