use %d instead of %ld

This commit is contained in:
lukem 1998-02-10 07:15:34 +00:00
parent e2d55944f4
commit 54305d4d11
1 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rpcinfo.c,v 1.7 1998/02/08 13:39:09 lukem Exp $ */
/* $NetBSD: rpcinfo.c,v 1.8 1998/02/10 07:15:34 lukem Exp $ */
#include <sys/cdefs.h>
#ifndef lint
@ -6,7 +6,7 @@
static char sccsid[] = "from: @(#)rpcinfo.c 1.22 87/08/12 SMI";
static char sccsid[] = "from: @(#)rpcinfo.c 2.2 88/08/11 4.0 RPCSRC";
#else
__RCSID("$NetBSD: rpcinfo.c,v 1.7 1998/02/08 13:39:09 lukem Exp $");
__RCSID("$NetBSD: rpcinfo.c,v 1.8 1998/02/10 07:15:34 lukem Exp $");
#endif
#endif
@ -528,7 +528,7 @@ pmapdump(argc, argv)
} else {
printf(" program vers proto port\n");
for (; head != NULL; head = head->pml_next) {
printf("%10ld%5ld",
printf("%10d%5d",
head->pml_map.pm_prog,
head->pml_map.pm_vers);
if (head->pml_map.pm_prot == IPPROTO_UDP)
@ -536,8 +536,8 @@ pmapdump(argc, argv)
else if (head->pml_map.pm_prot == IPPROTO_TCP)
printf("%6s", "tcp");
else
printf("%6ld", head->pml_map.pm_prot);
printf("%7ld", head->pml_map.pm_port);
printf("%6d", head->pml_map.pm_prot);
printf("%7d", head->pml_map.pm_port);
rpc = getrpcbynumber(head->pml_map.pm_prog);
if (rpc)
printf(" %s\n", rpc->r_name);