summaryrefslogtreecommitdiff
path: root/bin/systrace/intercept.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-09-06 22:56:22 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-09-06 22:56:22 +0000
commit3340156670d78e1dcfd8e3103401cfc689ea172e (patch)
tree2c078a18f85e33c717e2956d894a3179fa352225 /bin/systrace/intercept.c
parent7dfda9f18312e783397713e7a955ce8066dbcd3c (diff)
standalone ; at top scope is illegal in ansi c
Diffstat (limited to 'bin/systrace/intercept.c')
-rw-r--r--bin/systrace/intercept.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/systrace/intercept.c b/bin/systrace/intercept.c
index 76c5c35d8e3..59376ac12f2 100644
--- a/bin/systrace/intercept.c
+++ b/bin/systrace/intercept.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: intercept.c,v 1.29 2002/08/28 03:30:27 itojun Exp $ */
+/* $OpenBSD: intercept.c,v 1.30 2002/09/06 22:56:21 deraadt Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -102,11 +102,11 @@ pidcompare(struct intercept_pid *a, struct intercept_pid *b)
return (-1);
}
-SPLAY_PROTOTYPE(sctree, intercept_syscall, node, sccompare);
-SPLAY_GENERATE(sctree, intercept_syscall, node, sccompare);
+SPLAY_PROTOTYPE(sctree, intercept_syscall, node, sccompare)
+SPLAY_GENERATE(sctree, intercept_syscall, node, sccompare)
-SPLAY_PROTOTYPE(pidtree, intercept_pid, next, pidcompare);
-SPLAY_GENERATE(pidtree, intercept_pid, next, pidcompare);
+SPLAY_PROTOTYPE(pidtree, intercept_pid, next, pidcompare)
+SPLAY_GENERATE(pidtree, intercept_pid, next, pidcompare)
extern struct intercept_system intercept;
int ic_abort;
@@ -493,7 +493,7 @@ intercept_get_string(int fd, pid_t pid, void *addr)
stride = 32;
do {
if (intercept.io(fd, pid, INTERCEPT_READ, (char *)addr + off,
- &name[off], stride) == -1) {
+ &name[off], stride) == -1) {
/* Did the current system call get interrupted? */
if (errno == EBUSY)
return (NULL);