diff options
author | Niels Provos <provos@cvs.openbsd.org> | 2002-07-20 04:19:54 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 2002-07-20 04:19:54 +0000 |
commit | 86ef1bb63140185d7f2c99a9afd2684be7710e0c (patch) | |
tree | 284736dfa0e2e924e4780bc59c244e1abf379f0d | |
parent | aa405e99ba7a450f873f6d88af4580da7ffb7c3a (diff) |
compile on sparc64
-rw-r--r-- | bin/systrace/intercept-translate.c | 5 | ||||
-rw-r--r-- | bin/systrace/systrace-translate.c | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/bin/systrace/intercept-translate.c b/bin/systrace/intercept-translate.c index 89892a6d93d..3451dce93c0 100644 --- a/bin/systrace/intercept-translate.c +++ b/bin/systrace/intercept-translate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: intercept-translate.c,v 1.7 2002/07/19 14:38:57 itojun Exp $ */ +/* $OpenBSD: intercept-translate.c,v 1.8 2002/07/20 04:19:53 provos Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -33,6 +33,7 @@ #include <sys/param.h> #include <sys/tree.h> #include <sys/socket.h> +#include <inttypes.h> #include <limits.h> #include <stdio.h> #include <stdlib.h> @@ -200,7 +201,7 @@ ic_get_sockaddr(struct intercept_translate *trans, int fd, pid_t pid, struct sockaddr_storage sa; socklen_t len; - len = (socklen_t )trans->trans_addr2; + len = (intptr_t)trans->trans_addr2; if (len == 0 || len > sizeof(struct sockaddr_storage)) return (-1); diff --git a/bin/systrace/systrace-translate.c b/bin/systrace/systrace-translate.c index ce86c38dbdf..d93ffd4380c 100644 --- a/bin/systrace/systrace-translate.c +++ b/bin/systrace/systrace-translate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: systrace-translate.c,v 1.7 2002/07/19 22:22:54 itojun Exp $ */ +/* $OpenBSD: systrace-translate.c,v 1.8 2002/07/20 04:19:53 provos Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -174,7 +174,7 @@ static int print_uname(char *buf, size_t buflen, struct intercept_translate *tl) { struct passwd *pw; - uid_t uid = (uid_t)tl->trans_addr; + uid_t uid = (intptr_t)tl->trans_addr; pw = getpwuid(uid); snprintf(buf, buflen, "%s", pw != NULL ? pw->pw_name : "<unknown>"); |