diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-11-12 19:13:10 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-11-12 19:13:10 +0000 |
commit | 3e125c3fcef09481d2cc695b02ddc150d6ca1c65 (patch) | |
tree | ce7b1af3dc7efd1a2a9cf45d25282687fe4292f1 | |
parent | 7a9c67ed287c3650e16512ed303fcbf33e0f714b (diff) |
remove unused variable; ok kjell
-rw-r--r-- | usr.bin/mg/grep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mg/grep.c b/usr.bin/mg/grep.c index edd36e8192f..4862eed0648 100644 --- a/usr.bin/mg/grep.c +++ b/usr.bin/mg/grep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grep.c,v 1.22 2005/11/11 18:40:51 deraadt Exp $ */ +/* $OpenBSD: grep.c,v 1.23 2005/11/12 19:13:09 deraadt Exp $ */ /* * Copyright (c) 2001 Artur Grabowski <art@openbsd.org>. * Copyright (c) 2005 Kjell Wooding <kjell@openbsd.org>. @@ -221,7 +221,7 @@ compile_mode(const char *name, const char *command, const char *path) char *buf; size_t len; int ret; - char *wdir, cwd[NFILEN]; + char cwd[NFILEN]; char timestr[NTIME]; time_t t; @@ -233,7 +233,7 @@ compile_mode(const char *name, const char *command, const char *path) addline(bp, command); addline(bp, ""); - if ((wdir = getcwd(cwd, sizeof(cwd))) == NULL) + if (getcwd(cwd, sizeof(cwd)) == NULL) panic("Can't get current directory!"); if (chdir(path) == -1) { ewprintf("Can't change dir to %s", path); |