Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/systrace Avoid using structure initializers with struct ...
details: https://anonhg.NetBSD.org/src/rev/0a886c9083fb
branches: trunk
changeset: 557914:0a886c9083fb
user: kleink <kleink%NetBSD.org@localhost>
date: Wed Jan 21 22:50:56 2004 +0000
description:
Avoid using structure initializers with struct timeval.
diffstat:
bin/systrace/systrace.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 4cc16d2d0dcf -r 0a886c9083fb bin/systrace/systrace.c
--- a/bin/systrace/systrace.c Wed Jan 21 22:15:16 2004 +0000
+++ b/bin/systrace/systrace.c Wed Jan 21 22:50:56 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: systrace.c,v 1.27 2004/01/17 18:54:32 provos Exp $ */
+/* $NetBSD: systrace.c,v 1.28 2004/01/21 22:50:56 kleink Exp $ */
/* $OpenBSD: systrace.c,v 1.32 2002/08/05 23:27:53 provos Exp $ */
/*
* Copyright 2002 Niels Provos <provos%citi.umich.edu@localhost>
@@ -561,7 +561,7 @@
char **args;
char *filename = NULL;
char *policypath = NULL;
- struct timeval tv, tv_wait = {60, 0};
+ struct timeval tv, tv_wait;
pid_t pidattach = 0;
int usex11 = 1, count;
int background;
@@ -569,6 +569,9 @@
uid_t cr_uid;
gid_t cr_gid;
+ tv_wait.tv_sec = 60;
+ tv_wait.tv_usec = 0;
+
while ((c = getopt(argc, argv, "c:aAituUCd:g:f:p:")) != -1) {
switch (c) {
case 'c':
Home |
Main Index |
Thread Index |
Old Index