diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-05-25 13:53:14 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-05-25 14:06:26 -0700 |
commit | 8d4c472d81e2ee735ed2b642cd7290fb5830ee60 (patch) | |
tree | d5f9be7962f229da93fffdca82fc490559602739 | |
parent | 33fd917bcd564a5526216a286867a528018f425d (diff) |
Remove unnecessary cast of getenv return value to char *
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | xkbevd.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -483,9 +483,7 @@ main(int argc, char *argv[]) file = NULL; XkbInitAtoms(NULL); if (cfgFileName == NULL) { - char *home; - - home = (char *) getenv("HOME"); + char *home = getenv("HOME"); snprintf(buf, sizeof(buf), DFLT_XKBEVD_CONFIG, (home ? home : "")); cfgFileName = buf; } |