diff options
author | mjacob <mjacob@FreeBSD.org> | 2001-07-05 16:53:49 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2001-07-05 16:53:49 +0000 |
commit | f36634093c582503927787fa26592eece8db8314 (patch) | |
tree | 9f60d1cf4ee5c26607feb16d8bd863c4d1f2fa4b /usr.sbin/rarpd/rarpd.c | |
parent | 88bd9429d1da75ac6bb81dc821dc4a4d20a5cfc0 (diff) | |
download | FreeBSD-src-f36634093c582503927787fa26592eece8db8314.zip FreeBSD-src-f36634093c582503927787fa26592eece8db8314.tar.gz |
make it compile on alpha again
Diffstat (limited to 'usr.sbin/rarpd/rarpd.c')
-rw-r--r-- | usr.sbin/rarpd/rarpd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/rarpd/rarpd.c b/usr.sbin/rarpd/rarpd.c index e32b85b..b0d999e 100644 --- a/usr.sbin/rarpd/rarpd.c +++ b/usr.sbin/rarpd/rarpd.c @@ -1024,7 +1024,8 @@ expand_syslog_m(const char *fmt, char **newfmt) { p = strdup(""); str = fmt; while ((m = strstr(str, "%m")) != NULL) { - asprintf(&np, "%s%.*s%s", p, m - str, str, strerror(errno)); + asprintf(&np, "%s%.*s%s", p, (int)(m - str), + str, strerror(errno)); free(p); if (np == NULL) { errno = ENOMEM; |