From 1c462012e421df677aed06a68545467757e7453b Mon Sep 17 00:00:00 2001 From: FRIGN Date: Wed, 11 Feb 2015 21:14:28 +0100 Subject: [PATCH] Rename variable Rune * p -> r in fgetrune() --- libutf/fgetrune.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libutf/fgetrune.c b/libutf/fgetrune.c index d8ca712..50fd355 100644 --- 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); }