diff options
author | 2015-11-23 09:42:57 +0000 | |
---|---|---|
committer | 2015-11-23 09:42:57 +0000 | |
commit | fb1473eeb439601c340588f797775c4406ab3a56 (patch) | |
tree | 00f1b40d256f550a0e5807815b0301a07e53d4e9 | |
parent | Most of these functions can be static. (diff) | |
download | wireguard-openbsd-fb1473eeb439601c340588f797775c4406ab3a56.tar.xz wireguard-openbsd-fb1473eeb439601c340588f797775c4406ab3a56.zip |
Don't shadow a function argument.
-rw-r--r-- | usr.bin/less/cmdbuf.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/less/cmdbuf.c b/usr.bin/less/cmdbuf.c index 42815973bf8..33ce27031e8 100644 --- a/usr.bin/less/cmdbuf.c +++ b/usr.bin/less/cmdbuf.c @@ -170,11 +170,11 @@ cmd_step_common(char *p, LWCHAR ch, int len, int *pwidth, int *bswidth) if (len == 1) { pr = prchar((int)ch); if (pwidth != NULL || bswidth != NULL) { - int len = strlen(pr); + int prlen = strlen(pr); if (pwidth != NULL) - *pwidth = len; + *pwidth = prlen; if (bswidth != NULL) - *bswidth = len; + *bswidth = prlen; } } else { pr = prutfchar(ch); @@ -185,11 +185,11 @@ cmd_step_common(char *p, LWCHAR ch, int len, int *pwidth, int *bswidth) if (bswidth != NULL) *bswidth = 0; } else if (is_ubin_char(ch)) { - int len = strlen(pr); + int prlen = strlen(pr); if (pwidth != NULL) - *pwidth = len; + *pwidth = prlen; if (bswidth != NULL) - *bswidth = len; + *bswidth = prlen; } else { LWCHAR prev_ch = step_char(&p, -1, cmdbuf); if (is_combining_char(prev_ch, ch)) { |