From 3340156670d78e1dcfd8e3103401cfc689ea172e Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 6 Sep 2002 22:56:22 +0000 Subject: standalone ; at top scope is illegal in ansi c --- bin/systrace/intercept.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bin/systrace/intercept.c') 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 * 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); -- cgit v1.2.3