mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Fixed printf format errors.
This commit is contained in:
parent
ab84534772
commit
bb6ae0a4a9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=38024
4 changed files with 11 additions and 11 deletions
|
@ -1252,8 +1252,8 @@ writemsg(int rfd, const u_char *msg, int msglen) {
|
|||
iov[1].iov_len = msglen;
|
||||
ret = writev(rfd, iov, 2);
|
||||
if (ret != INT16SZ + msglen) {
|
||||
syslog(LOG_DEBUG, "writemsg(%d,%#x,%d) failed: %s",
|
||||
rfd, msg, msglen, strerror(errno));
|
||||
syslog(LOG_DEBUG, "writemsg(%d,%p,%d) failed: %s",
|
||||
rfd, (void *)msg, msglen, strerror(errno));
|
||||
return (-1);
|
||||
}
|
||||
return (ret);
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
#ifndef lint
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
"$Id: atrun.c,v 1.12 1997/11/20 07:21:50 charnier Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
/* System Headers */
|
||||
|
@ -221,13 +221,13 @@ run_file(const char *filename, uid_t uid, gid_t gid)
|
|||
}
|
||||
mailname = mailbuf;
|
||||
if (nuid != uid) {
|
||||
syslog(LOG_ERR,"Job %s - userid %d does not match file uid %d",
|
||||
filename, nuid, uid);
|
||||
syslog(LOG_ERR,"Job %s - userid %ld does not match file uid %lu",
|
||||
filename, nuid, (unsigned long)uid);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
if (ngid != gid) {
|
||||
syslog(LOG_ERR,"Job %s - groupid %d does not match file gid %d",
|
||||
filename, ngid, gid);
|
||||
syslog(LOG_ERR,"Job %s - groupid %ld does not match file gid %lu",
|
||||
filename, ngid, (unsigned long)gid);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
fclose(stream);
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
static char sccsid[] = "@(#)print.c 8.1 (Berkeley) 6/4/93";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id: print.c,v 1.6 1997/12/02 12:33:17 charnier Exp $";
|
||||
"$Id: print.c,v 1.7 1997/12/24 19:39:57 imp Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
/* debug print routines */
|
||||
|
@ -67,7 +67,7 @@ print_request(cp, mp)
|
|||
tp = tbuf;
|
||||
} else
|
||||
tp = types[mp->type];
|
||||
syslog(LOG_DEBUG, "%s: %s: id %d, l_user %s, r_user %s, r_tty %s",
|
||||
syslog(LOG_DEBUG, "%s: %s: id %lu, l_user %s, r_user %s, r_tty %s",
|
||||
cp, tp, mp->id_num, mp->l_name, mp->r_name, mp->r_tty);
|
||||
}
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
#ifndef lint
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
"$Id: ypxfr_main.c,v 1.11 1997/12/08 07:49:54 charnier Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <errno.h>
|
||||
|
@ -441,7 +441,7 @@ the local domain name isn't set");
|
|||
* master name, input file name (we actually make up a bogus
|
||||
* name for that) and output file name.
|
||||
*/
|
||||
snprintf(buf, sizeof(buf), "%d", ypxfr_order);
|
||||
snprintf(buf, sizeof(buf), "%lu", ypxfr_order);
|
||||
data.data = buf;
|
||||
data.size = strlen(buf);
|
||||
|
||||
|
|
Loading…
Reference in a new issue