summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-05-25 13:53:14 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2014-05-25 14:06:26 -0700
commit8d4c472d81e2ee735ed2b642cd7290fb5830ee60 (patch)
treed5f9be7962f229da93fffdca82fc490559602739
parent33fd917bcd564a5526216a286867a528018f425d (diff)
Remove unnecessary cast of getenv return value to char *
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xkbevd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/xkbevd.c b/xkbevd.c
index 4db7b8e..7b4782c 100644
--- a/xkbevd.c
+++ b/xkbevd.c
@@ -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;
}