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>
This commit is contained in:
Alan Coopersmith 2011-11-01 14:57:41 -07:00
parent 5f285a30a1
commit 615f93a3d0

View File

@ -334,12 +334,12 @@ static char *buf;
char * char *
XkbKeysymText(KeySym sym,unsigned format) XkbKeysymText(KeySym sym,unsigned format)
{ {
static char buf[32],*rtrn; static char buf[32];
if (sym==NoSymbol) if (sym==NoSymbol)
strcpy(rtrn=buf,"NoSymbol"); strcpy(buf,"NoSymbol");
else sprintf(rtrn=buf, "0x%lx", (long)sym); else sprintf(buf, "0x%lx", (long)sym);
return rtrn; return buf;
} }
char * char *