diff options
author | 2015-12-22 08:22:33 +0000 | |
---|---|---|
committer | 2015-12-22 08:22:33 +0000 | |
commit | a73fb8f643174c4ab8565019c4202c29588365ae (patch) | |
tree | 7890d609e53965fbee5ba41a289e8e2425bd2ce2 | |
parent | Remove a needless allocation cast. No binary change. (diff) | |
download | wireguard-openbsd-a73fb8f643174c4ab8565019c4202c29588365ae.tar.xz wireguard-openbsd-a73fb8f643174c4ab8565019c4202c29588365ae.zip |
Remove a couple needless allocation casts. No binary change.
-rw-r--r-- | usr.bin/rdistd/server.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rdistd/server.c b/usr.bin/rdistd/server.c index de3b872fc4f..7e70e3b6b6f 100644 --- a/usr.bin/rdistd/server.c +++ b/usr.bin/rdistd/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.38 2015/11/15 06:18:19 guenther Exp $ */ +/* $OpenBSD: server.c,v 1.39 2015/12/22 08:22:33 mmcc Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -522,7 +522,7 @@ docmdspecial(void) E_FILES, E_FILES, cp); } else { len = strlen(env) + 1 + strlen(cp) + 1; - env = (char *) xrealloc(env, len); + env = xrealloc(env, len); (void) strlcat(env, ":", len); (void) strlcat(env, cp, len); } @@ -532,7 +532,7 @@ docmdspecial(void) case RC_COMMAND: if (env) { len = strlen(env) + 1 + strlen(cp) + 1; - env = (char *) xrealloc(env, len); + env = xrealloc(env, len); (void) strlcat(env, ";", len); (void) strlcat(env, cp, len); cmd = env; |