summaryrefslogtreecommitdiff
path: root/bin/systrace/systrace-translate.c
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-09-30 03:45:40 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-09-30 03:45:40 +0000
commitb12529887ffd425c197d551670bf690243db6d8d (patch)
treec11c4399e99fe8d1d13adf03c2f927b90d750eef /bin/systrace/systrace-translate.c
parenta32896598cf32e871afefaa4f3af32c1707402a1 (diff)
fix return value; from marius@umich.edu via provos
Diffstat (limited to 'bin/systrace/systrace-translate.c')
-rw-r--r--bin/systrace/systrace-translate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/systrace/systrace-translate.c b/bin/systrace/systrace-translate.c
index 0d8fa961d77..ddfb35400d6 100644
--- a/bin/systrace/systrace-translate.c
+++ b/bin/systrace/systrace-translate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: systrace-translate.c,v 1.10 2002/08/01 20:50:17 provos Exp $ */
+/* $OpenBSD: systrace-translate.c,v 1.11 2002/09/30 03:45:39 itojun Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -196,7 +196,7 @@ get_argv(struct intercept_translate *trans, int fd, pid_t pid, void *addr)
if (intercept.io(fd, pid, INTERCEPT_READ, (char *)addr + off,
(void *)&arg, sizeof(char *)) == -1) {
warn("%s: ioctl", __func__);
- return (NULL);
+ return (-1);
}
if (arg == NULL)
break;