summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpc.lockd
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2013-04-19 05:06:21 +0000
committerderaadt <deraadt@openbsd.org>2013-04-19 05:06:21 +0000
commit5bfbc77e5792df1aaafd631782dfcb73a10608c1 (patch)
tree52f9f8fad0d5a3da3128119320dc11e12b5281aa /usr.sbin/rpc.lockd
parentadd the ability to query supported ciphers, MACs, key type and KEX (diff)
downloadwireguard-openbsd-5bfbc77e5792df1aaafd631782dfcb73a10608c1.tar.xz
wireguard-openbsd-5bfbc77e5792df1aaafd631782dfcb73a10608c1.zip
print tv_sec properly
Diffstat (limited to 'usr.sbin/rpc.lockd')
-rw-r--r--usr.sbin/rpc.lockd/test.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/rpc.lockd/test.c b/usr.sbin/rpc.lockd/test.c
index 11fb4febdb5..176291aba91 100644
--- a/usr.sbin/rpc.lockd/test.c
+++ b/usr.sbin/rpc.lockd/test.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: test.c,v 1.5 2009/10/27 23:59:54 deraadt Exp $ */
+/* $OpenBSD: test.c,v 1.6 2013/04/19 05:06:21 deraadt Exp $ */
#include <rpc/rpc.h>
#include <rpcsvc/nlm_prot.h>
@@ -291,13 +291,14 @@ main(int argc, char **argv)
exit(1);
}
clnt_control(cli, CLGET_TIMEOUT, &tim);
- printf("Default timeout was %d.%d\n", tim.tv_sec, tim.tv_usec);
+ printf("Default timeout was %lld.%ld\n", (long long)tim.tv_sec,
+ tim.tv_usec);
tim.tv_usec = -1;
tim.tv_sec = -1;
clnt_control(cli, CLSET_TIMEOUT, &tim);
clnt_control(cli, CLGET_TIMEOUT, &tim);
- printf("timeout now %d.%d\n", tim.tv_sec, tim.tv_usec);
-
+ printf("timeout now %lld.%ld\n", (long long)tim.tv_sec,
+ tim.tv_usec);
arg.cookie.n_len = 4;
arg.cookie.n_bytes = "hello";