summaryrefslogtreecommitdiff
path: root/usr.bin/rdistd
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-12-22 08:48:40 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-12-22 08:48:40 +0000
commit44cfc722cc5c6181c1822b7c4ac9c34d3fed2eeb (patch)
tree06a885dcd232fb29a7e74096bc900f0ee3c9ada9 /usr.bin/rdistd
parent538f7339c0cf9b8b8395bd409cee024452c4a243 (diff)
remove needless allocation casts
Diffstat (limited to 'usr.bin/rdistd')
-rw-r--r--usr.bin/rdistd/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rdistd/server.c b/usr.bin/rdistd/server.c
index 7e70e3b6b6f..23188f9225a 100644
--- a/usr.bin/rdistd/server.c
+++ b/usr.bin/rdistd/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.39 2015/12/22 08:22:33 mmcc Exp $ */
+/* $OpenBSD: server.c,v 1.40 2015/12/22 08:48:39 mmcc Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
@@ -517,7 +517,7 @@ docmdspecial(void)
case RC_FILE:
if (env == NULL) {
len = (2 * sizeof(E_FILES)) + strlen(cp) + 10;
- env = (char *) xmalloc(len);
+ env = xmalloc(len);
(void) snprintf(env, len, "export %s;%s=%s",
E_FILES, E_FILES, cp);
} else {