Fixed printf format errors.
This commit is contained in:
parent
673796a715
commit
1a463b86e9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37297
@ -42,7 +42,7 @@ static const char copyright[] =
|
|||||||
static char sccsid[] = "@(#)comsat.c 8.1 (Berkeley) 6/4/93";
|
static char sccsid[] = "@(#)comsat.c 8.1 (Berkeley) 6/4/93";
|
||||||
#endif
|
#endif
|
||||||
static const char rcsid[] =
|
static const char rcsid[] =
|
||||||
"$Id$";
|
"$Id: comsat.c,v 1.11 1997/11/20 07:23:44 charnier Exp $";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -186,9 +186,11 @@ mailfor(name)
|
|||||||
file = name;
|
file = name;
|
||||||
else
|
else
|
||||||
file = cp + 1;
|
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 != '/') {
|
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;
|
file = buf2;
|
||||||
}
|
}
|
||||||
folder = strcmp(buf, file);
|
folder = strcmp(buf, file);
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static const char rcsid[] =
|
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 */
|
#endif /* not lint */
|
||||||
|
|
||||||
#define LINSIZ 1024
|
#define LINSIZ 1024
|
||||||
@ -216,7 +216,7 @@ domain not set");
|
|||||||
if ((glist = lookup(mtable, (char *)&readbuf)) != NULL) {
|
if ((glist = lookup(mtable, (char *)&readbuf)) != NULL) {
|
||||||
while(glist) {
|
while(glist) {
|
||||||
if (glist->groupid != i)
|
if (glist->groupid != i)
|
||||||
printf(",%lu", glist->groupid);
|
printf(",%lu", (u_long)glist->groupid);
|
||||||
glist = glist->next;
|
glist = glist->next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -45,7 +45,7 @@ static const char copyright[] =
|
|||||||
static char sccsid[] = "@(#)uucpd.c 8.1 (Berkeley) 6/4/93";
|
static char sccsid[] = "@(#)uucpd.c 8.1 (Berkeley) 6/4/93";
|
||||||
#endif
|
#endif
|
||||||
static const char rcsid[] =
|
static const char rcsid[] =
|
||||||
"$Id$";
|
"$Id: uucpd.c,v 1.14 1997/12/04 07:20:45 charnier Exp $";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -236,7 +236,7 @@ void dologout(void)
|
|||||||
char line[32];
|
char line[32];
|
||||||
|
|
||||||
while ((pid=wait((int *)&status)) > 0) {
|
while ((pid=wait((int *)&status)) > 0) {
|
||||||
sprintf(line, "uucp%ld", pid);
|
sprintf(line, "uucp%ld", (long)pid);
|
||||||
logwtmp(line, "", "");
|
logwtmp(line, "", "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -261,7 +261,7 @@ void dologin(struct passwd *pw, struct sockaddr_in *sin)
|
|||||||
sizeof (remotehost));
|
sizeof (remotehost));
|
||||||
remotehost[sizeof remotehost - 1] = '\0';
|
remotehost[sizeof remotehost - 1] = '\0';
|
||||||
/* hack, but must be unique and no tty line */
|
/* hack, but must be unique and no tty line */
|
||||||
sprintf(line, "uucp%ld", getpid());
|
sprintf(line, "uucp%ld", (long)getpid());
|
||||||
time(&cur_time);
|
time(&cur_time);
|
||||||
if ((f = open(_PATH_LASTLOG, O_RDWR)) >= 0) {
|
if ((f = open(_PATH_LASTLOG, O_RDWR)) >= 0) {
|
||||||
struct lastlog ll;
|
struct lastlog ll;
|
||||||
|
Loading…
Reference in New Issue
Block a user