From e71a15405c6e1327dae5000b844e12cb4eb2617d Mon Sep 17 00:00:00 2001 From: kleink Date: Wed, 21 Jan 2004 22:50:56 +0000 Subject: [PATCH] Avoid using structure initializers with struct timeval. --- bin/systrace/systrace.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/systrace/systrace.c b/bin/systrace/systrace.c index d3aa6eda0a65..81dd6ec782f1 100644 --- a/bin/systrace/systrace.c +++ b/bin/systrace/systrace.c @@ -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 @@ -561,7 +561,7 @@ main(int argc, char **argv) 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 @@ main(int argc, char **argv) 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':