sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 1c462012e421df677aed06a68545467757e7453b
parent 7c578bf5b0ea8b79bea201f0eaf9bbc958b9efa3
Author: FRIGN <dev@frign.de>
Date:   Wed, 11 Feb 2015 21:14:28 +0100

Rename variable Rune * p -> r in fgetrune()

Diffstat:
Mlibutf/fgetrune.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libutf/fgetrune.c b/libutf/fgetrune.c @@ -7,13 +7,13 @@ #include "../utf.h" int -fgetrune(Rune *p, FILE *fp) +fgetrune(Rune *r, FILE *fp) { char buf[UTFmax]; int i; for (i = 0; i < UTFmax && (buf[i] = fgetc(fp)) != EOF && ++i ;) - if (charntorune(p, buf, i) > 0) + if (charntorune(r, buf, i) > 0) break; if (ferror(fp)) return -1; @@ -22,11 +22,11 @@ fgetrune(Rune *p, FILE *fp) } int -efgetrune(Rune *p, FILE *fp, const char *file) +efgetrune(Rune *r, FILE *fp, const char *file) { int ret; - if ((ret = fgetrune(p, fp)) < 0) { + if ((ret = fgetrune(r, fp)) < 0) { fprintf(stderr, "fgetrune %s: %s\n", file, strerror(errno)); exit(1); }