diff options
author | Kjell Wooding <kjell@cvs.openbsd.org> | 2005-12-20 05:04:29 +0000 |
---|---|---|
committer | Kjell Wooding <kjell@cvs.openbsd.org> | 2005-12-20 05:04:29 +0000 |
commit | c226a1a5746a6ef88d5315d2c1060b2004d48c7d (patch) | |
tree | fad9060e84b9806d614abb0ca368a09393900e26 /usr.bin/mg/dir.c | |
parent | bfe486f003f4f00794a1eaa74f748459b856f2b2 (diff) |
Do some delinting of strl-type functions. Also, remove a superfluous
word in the undo-list.
Diffstat (limited to 'usr.bin/mg/dir.c')
-rw-r--r-- | usr.bin/mg/dir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/dir.c b/usr.bin/mg/dir.c index 2383d711681..656b6c08f14 100644 --- a/usr.bin/mg/dir.c +++ b/usr.bin/mg/dir.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dir.c,v 1.15 2005/11/20 18:47:11 kjell Exp $ */ +/* $OpenBSD: dir.c,v 1.16 2005/12/20 05:04:28 kjell Exp $ */ /* This file is in the public domain. */ @@ -23,7 +23,7 @@ dirinit(void) if ((wdir = getcwd(cwd, sizeof(cwd))) == NULL) { ewprintf("Can't get current directory!"); chdir("/"); - strlcpy(cwd, "/", sizeof(cwd)); + (void)strlcpy(cwd, "/", sizeof(cwd)); } } |