diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2004-06-06 00:12:04 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2004-06-06 00:12:04 +0000 |
commit | c08b8202fcbeec125bebc76bf5dd621046be13f0 (patch) | |
tree | a5e4eb4deb18cb978be4a3b5b4d17c81ddd4de02 /sbin/mount_portal/conf.c | |
parent | 82c9054db01bea39aedc303dfa9c7c979c214c38 (diff) |
64bit int fixes
Diffstat (limited to 'sbin/mount_portal/conf.c')
-rw-r--r-- | sbin/mount_portal/conf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/mount_portal/conf.c b/sbin/mount_portal/conf.c index 69f66ab3078..51e2fcbfefc 100644 --- a/sbin/mount_portal/conf.c +++ b/sbin/mount_portal/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.8 2003/07/29 18:38:36 deraadt Exp $ */ +/* $OpenBSD: conf.c,v 1.9 2004/06/06 00:12:03 tedu Exp $ */ /* $NetBSD: conf.c,v 1.4 1995/04/23 10:33:19 cgd Exp $ */ /* @@ -100,7 +100,7 @@ xmalloc(size_t siz) void *p = malloc(siz); if (p) return (p); - syslog(LOG_ALERT, "malloc: failed to get %d bytes", siz); + syslog(LOG_ALERT, "malloc: failed to get %ld bytes", siz); exit(1); } @@ -151,7 +151,7 @@ palloc(char *cline, int lno) c = 0; key = strdup(cline); if (key == NULL) { - syslog(LOG_ALERT, "malloc: failed to get %d bytes", + syslog(LOG_ALERT, "malloc: failed to get %ld bytes", strlen(cline)); exit(1); } @@ -176,7 +176,7 @@ palloc(char *cline, int lno) p->p_argv = xmalloc(c * sizeof(char *)); p->p_args = strdup(cline); if (p->p_args == NULL) { - syslog(LOG_ALERT, "malloc: failed to get %d bytes", + syslog(LOG_ALERT, "malloc: failed to get %ld bytes", strlen(cline)); exit(1); } |