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:
parent
5f285a30a1
commit
615f93a3d0
|
@ -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 *
|
||||||
|
|
Loading…
Reference in New Issue