diff options
| author | 2017-05-30 07:05:22 +0000 | |
|---|---|---|
| committer | 2017-05-30 07:05:22 +0000 | |
| commit | 78607f8b51e865acc5bf5377bc3f576d3d041869 (patch) | |
| tree | 87e8457f639a2d9bec014148ecdc5e40fcc94fc8 /usr.bin/mg/modes.c | |
| parent | Unbreak previous for git diffs that do not have the a/ prefix. (diff) | |
| download | wireguard-openbsd-78607f8b51e865acc5bf5377bc3f576d3d041869.tar.xz wireguard-openbsd-78607f8b51e865acc5bf5377bc3f576d3d041869.zip | |
fix -Wshadow warnings.
Found by bcallah, thanks!
Diffstat (limited to 'usr.bin/mg/modes.c')
| -rw-r--r-- | usr.bin/mg/modes.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/mg/modes.c b/usr.bin/mg/modes.c index 027a5cd8f65..9d5e4ce5373 100644 --- a/usr.bin/mg/modes.c +++ b/usr.bin/mg/modes.c @@ -1,4 +1,4 @@ -/* $OpenBSD: modes.c,v 1.20 2015/03/19 21:22:15 bcallah Exp $ */ +/* $OpenBSD: modes.c,v 1.21 2017/05/30 07:05:22 florian Exp $ */ /* This file is in the public domain. */ @@ -23,14 +23,14 @@ struct maps_s *defb_modes[PBMODES] = { &fundamental_mode }; int defb_flag = 0; int -changemode(int f, int n, char *mode) +changemode(int f, int n, char *newmode) { int i; struct maps_s *m; - if ((m = name_mode(mode)) == NULL) { + if ((m = name_mode(newmode)) == NULL) { dobeep(); - ewprintf("Can't find mode %s", mode); + ewprintf("Can't find mode %s", newmode); return (FALSE); } if (!(f & FFARG)) { |
