diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-06-18 01:54:32 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-06-18 01:54:32 +0000 |
commit | d818208e2da337b5470ac91eac9b52f68925127b (patch) | |
tree | aa81f8249ac8ac655eae35ec48e459a1fc7541a9 /bin/systrace | |
parent | 014716e1514244630f7012703304a5b28d0e3b75 (diff) |
KNF
Diffstat (limited to 'bin/systrace')
-rw-r--r-- | bin/systrace/filter.c | 6 | ||||
-rw-r--r-- | bin/systrace/systrace.1 | 4 | ||||
-rw-r--r-- | bin/systrace/util.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/bin/systrace/filter.c b/bin/systrace/filter.c index 0817679043b..b971bbcd990 100644 --- a/bin/systrace/filter.c +++ b/bin/systrace/filter.c @@ -1,4 +1,4 @@ -/* $OpenBSD: filter.c,v 1.11 2002/06/11 05:30:28 provos Exp $ */ +/* $OpenBSD: filter.c,v 1.12 2002/06/18 01:54:31 deraadt Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -327,7 +327,7 @@ filter_ask(struct intercept_tlq *tls, struct filterq *fls, char compose[2*MAXPATHLEN], *l; char *lst = NULL; int set = 0; - + /* Explicitly match every component */ line[0] = '\0'; TAILQ_FOREACH(tl, tls, next) { @@ -336,7 +336,7 @@ filter_ask(struct intercept_tlq *tls, struct filterq *fls, l = intercept_translate_print(tl); if (l == NULL) continue; - + snprintf(compose, sizeof(compose), "%s%s eq \"%s\"", tl->name, diff --git a/bin/systrace/systrace.1 b/bin/systrace/systrace.1 index 12561f625de..0d4d4fbcdb4 100644 --- a/bin/systrace/systrace.1 +++ b/bin/systrace/systrace.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: systrace.1,v 1.16 2002/06/13 00:15:00 provos Exp $ +.\" $OpenBSD: systrace.1,v 1.17 2002/06/18 01:54:31 deraadt Exp $ .\" .\" Copyright 2002 Niels Provos <provos@citi.umich.edu> .\" All rights reserved. @@ -127,7 +127,7 @@ Evaluates to true if file name globbing according to .Xr fnmatch 3 succeeds. .It eq -Evaluates to true if the system call argument matches +Evaluates to true if the system call argument matches .Va cmdstring exactly. .It neq diff --git a/bin/systrace/util.c b/bin/systrace/util.c index 9e43a8e2c69..74866fc18ef 100644 --- a/bin/systrace/util.c +++ b/bin/systrace/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.5 2002/06/09 05:27:50 todd Exp $ */ +/* $OpenBSD: util.c,v 1.6 2002/06/18 01:54:31 deraadt Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -74,7 +74,7 @@ uid_to_name(uid_t uid) { static char buf[128]; struct passwd *pw; - + if ((pw = getpwuid(uid)) == NULL) snprintf(buf, sizeof(buf), "uid %d", uid); else |