From 1a463b86e93c84bc9c86042310eb72e5b734b94f Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Tue, 30 Jun 1998 15:19:51 +0000 Subject: [PATCH] Fixed printf format errors. --- libexec/comsat/comsat.c | 8 +++++--- libexec/mknetid/mknetid.c | 4 ++-- libexec/uucpd/uucpd.c | 6 +++--- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/libexec/comsat/comsat.c b/libexec/comsat/comsat.c index 0c49c1bce210..a199f58b6865 100644 --- a/libexec/comsat/comsat.c +++ b/libexec/comsat/comsat.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)comsat.c 8.1 (Berkeley) 6/4/93"; #endif static const char rcsid[] = - "$Id$"; + "$Id: comsat.c,v 1.11 1997/11/20 07:23:44 charnier Exp $"; #endif /* not lint */ #include @@ -186,9 +186,11 @@ mailfor(name) file = name; else file = cp + 1; - sprintf(buf, "%s/%.*s", _PATH_MAILDIR, sizeof(utmp[0].ut_name), name); + sprintf(buf, "%s/%.*s", _PATH_MAILDIR, (int)sizeof(utmp[0].ut_name), + name); if (*file != '/') { - sprintf(buf2, "%s/%.*s", _PATH_MAILDIR, sizeof(utmp[0].ut_name), file); + sprintf(buf2, "%s/%.*s", _PATH_MAILDIR, + (int)sizeof(utmp[0].ut_name), file); file = buf2; } folder = strcmp(buf, file); diff --git a/libexec/mknetid/mknetid.c b/libexec/mknetid/mknetid.c index a24ec91e9b80..4b8a3280c2b8 100644 --- a/libexec/mknetid/mknetid.c +++ b/libexec/mknetid/mknetid.c @@ -55,7 +55,7 @@ #ifndef lint static const char rcsid[] = - "$Id: mknetid.c,v 1.8 1997/11/24 07:31:31 charnier Exp $"; + "$Id: mknetid.c,v 1.9 1997/12/15 07:19:41 charnier Exp $"; #endif /* not lint */ #define LINSIZ 1024 @@ -216,7 +216,7 @@ domain not set"); if ((glist = lookup(mtable, (char *)&readbuf)) != NULL) { while(glist) { if (glist->groupid != i) - printf(",%lu", glist->groupid); + printf(",%lu", (u_long)glist->groupid); glist = glist->next; } } diff --git a/libexec/uucpd/uucpd.c b/libexec/uucpd/uucpd.c index 4975100b1af2..1e6281f9d0b1 100644 --- a/libexec/uucpd/uucpd.c +++ b/libexec/uucpd/uucpd.c @@ -45,7 +45,7 @@ static const char copyright[] = static char sccsid[] = "@(#)uucpd.c 8.1 (Berkeley) 6/4/93"; #endif static const char rcsid[] = - "$Id$"; + "$Id: uucpd.c,v 1.14 1997/12/04 07:20:45 charnier Exp $"; #endif /* not lint */ /* @@ -236,7 +236,7 @@ void dologout(void) char line[32]; while ((pid=wait((int *)&status)) > 0) { - sprintf(line, "uucp%ld", pid); + sprintf(line, "uucp%ld", (long)pid); logwtmp(line, "", ""); } } @@ -261,7 +261,7 @@ void dologin(struct passwd *pw, struct sockaddr_in *sin) sizeof (remotehost)); remotehost[sizeof remotehost - 1] = '\0'; /* hack, but must be unique and no tty line */ - sprintf(line, "uucp%ld", getpid()); + sprintf(line, "uucp%ld", (long)getpid()); time(&cur_time); if ((f = open(_PATH_LASTLOG, O_RDWR)) >= 0) { struct lastlog ll;