summaryrefslogtreecommitdiffstats
path: root/bin/rcp
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2002-07-10 20:44:55 +0000
committerdillon <dillon@FreeBSD.org>2002-07-10 20:44:55 +0000
commit3adf63f81dde1ef0bfe13d1926aecb7453b2cfec (patch)
tree532d4c0413a4d4d483da0b70f7b88f1fad49506d /bin/rcp
parentd5291af616cd93f5d0f49512296098b8f3ed246b (diff)
downloadFreeBSD-src-3adf63f81dde1ef0bfe13d1926aecb7453b2cfec.zip
FreeBSD-src-3adf63f81dde1ef0bfe13d1926aecb7453b2cfec.tar.gz
err() is documented as allowing NULL for the format string but GCC isn't
happy about it any more so change the usage to make buildworld work again.
Diffstat (limited to 'bin/rcp')
-rw-r--r--bin/rcp/rcp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/rcp/rcp.c b/bin/rcp/rcp.c
index f36af01..eb74580 100644
--- a/bin/rcp/rcp.c
+++ b/bin/rcp/rcp.c
@@ -307,7 +307,7 @@ toremote(char *targ, int argc, char *argv[])
strlen(src) + (tuser ? strlen(tuser) : 0) +
strlen(thost) + strlen(targ) + CMDNEEDS + 20;
if (!(bp = malloc(len)))
- err(1, NULL);
+ err(1, "malloc");
if (host) {
*host++ = 0;
suser = argv[i];
@@ -334,7 +334,7 @@ toremote(char *targ, int argc, char *argv[])
if (rem == -1) {
len = strlen(targ) + CMDNEEDS + 20;
if (!(bp = malloc(len)))
- err(1, NULL);
+ err(1, "malloc");
(void)snprintf(bp, len, "%s -t %s", cmd, targ);
host = thost;
#ifdef KERBEROS
@@ -374,7 +374,7 @@ tolocal(int argc, char *argv[])
len = strlen(_PATH_CP) + strlen(argv[i]) +
strlen(argv[argc - 1]) + 20;
if (!(bp = malloc(len)))
- err(1, NULL);
+ err(1, "malloc");
(void)snprintf(bp, len, "exec %s%s%s %s %s", _PATH_CP,
iamrecursive ? " -PR" : "", pflag ? " -p" : "",
argv[i], argv[argc - 1]);
@@ -401,7 +401,7 @@ tolocal(int argc, char *argv[])
}
len = strlen(src) + CMDNEEDS + 20;
if ((bp = malloc(len)) == NULL)
- err(1, NULL);
+ err(1, "malloc");
(void)snprintf(bp, len, "%s -f %s", cmd, src);
rem =
#ifdef KERBEROS
OpenPOWER on IntegriCloud