fix alpha compile warnings.
This commit is contained in:
parent
2d06dcebcd
commit
1bb06f8aab
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: displayq.c,v 1.12 1997/10/05 15:12:01 mrg Exp $ */
|
||||
/* $NetBSD: displayq.c,v 1.13 1997/10/05 16:45:43 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)displayq.c 8.4 (Berkeley) 4/28/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: displayq.c,v 1.12 1997/10/05 15:12:01 mrg Exp $");
|
||||
__RCSID("$NetBSD: displayq.c,v 1.13 1997/10/05 16:45:43 mrg Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -453,7 +453,7 @@ ldump(nfile, file, copies)
|
||||
else
|
||||
printf("%-32s", nfile);
|
||||
if (*file && !stat(file, &lbuf))
|
||||
printf(" %qd bytes", lbuf.st_size);
|
||||
printf(" %qd bytes", (long long)lbuf.st_size);
|
||||
else
|
||||
printf(" ??? bytes");
|
||||
putchar('\n');
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: lpc.c,v 1.8 1997/10/05 15:12:10 mrg Exp $ */
|
||||
/* $NetBSD: lpc.c,v 1.9 1997/10/05 16:45:44 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
@ -41,7 +41,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)lpc.c 8.3 (Berkeley) 4/28/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: lpc.c,v 1.8 1997/10/05 15:12:10 mrg Exp $");
|
||||
__RCSID("$NetBSD: lpc.c,v 1.9 1997/10/05 16:45:44 mrg Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -289,7 +289,7 @@ help(argc, argv)
|
||||
else if (c == (struct cmd *)0)
|
||||
printf("?Invalid help command %s\n", arg);
|
||||
else
|
||||
printf("%-*s\t%s\n", HELPINDENT,
|
||||
printf("%-*s\t%s\n", (int)HELPINDENT,
|
||||
c->c_name, c->c_help);
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: printjob.c,v 1.16 1997/10/05 15:12:14 mrg Exp $ */
|
||||
/* $NetBSD: printjob.c,v 1.17 1997/10/05 16:45:45 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
@ -45,7 +45,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)printjob.c 8.7 (Berkeley) 5/10/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: printjob.c,v 1.16 1997/10/05 15:12:14 mrg Exp $");
|
||||
__RCSID("$NetBSD: printjob.c,v 1.17 1997/10/05 16:45:45 mrg Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -865,7 +865,8 @@ sendfile(type, file)
|
||||
if ((stb.st_mode & S_IFMT) == S_IFLNK && fstat(f, &stb) == 0 &&
|
||||
(stb.st_dev != fdev || stb.st_ino != fino))
|
||||
return(ACCESS);
|
||||
amt = snprintf(buf, sizeof(buf), "%c%qd %s\n", type, stb.st_size, file);
|
||||
amt = snprintf(buf, sizeof(buf), "%c%qd %s\n", type,
|
||||
(long long)stb.st_size, file);
|
||||
for (i = 0; ; i++) {
|
||||
if (write(pfd, buf, amt) != amt ||
|
||||
(resp = response()) < 0 || resp == '\1') {
|
||||
|
Loading…
Reference in New Issue
Block a user