summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-01 14:57:41 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-23 12:15:06 -0800
commit615f93a3d03d40924365061c6ae242240dd0ab7e (patch)
tree35051da9124b2c7f9d5f2d572ff64f594c24ffdd
parent5f285a30a1d6ffba82ebe5e08a0b68352bb51556 (diff)
Remove unnecessary variable rtrn in XkbKeysymText
Also removes even more unnecessary use of variable assignment inside function arguments. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
-rw-r--r--xkb/xkbtext.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xkb/xkbtext.c b/xkb/xkbtext.c
index 1ba10a194..b3930f895 100644
--- a/xkb/xkbtext.c
+++ b/xkb/xkbtext.c
@@ -334,12 +334,12 @@ static char *buf;
char *
XkbKeysymText(KeySym sym,unsigned format)
{
-static char buf[32],*rtrn;
+static char buf[32];
if (sym==NoSymbol)
- strcpy(rtrn=buf,"NoSymbol");
- else sprintf(rtrn=buf, "0x%lx", (long)sym);
- return rtrn;
+ strcpy(buf,"NoSymbol");
+ else sprintf(buf, "0x%lx", (long)sym);
+ return buf;
}
char *