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 *
|
||||
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 *
|
||||
|
|
Loading…
Reference in New Issue
Block a user