From 3adf63f81dde1ef0bfe13d1926aecb7453b2cfec Mon Sep 17 00:00:00 2001 From: dillon Date: Wed, 10 Jul 2002 20:44:55 +0000 Subject: 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. --- bin/rcp/rcp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin/rcp') 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 -- cgit v1.1