From e58513301210fa245ae91f41c3ba4935c2713368 Mon Sep 17 00:00:00 2001 From: sin Date: Tue, 7 Jan 2014 14:56:05 +0000 Subject: [PATCH] Rename fillbuf() to fillargbuf() --- xargs.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/xargs.c b/xargs.c index 77da254..d18cb88 100644 --- a/xargs.c +++ b/xargs.c @@ -14,7 +14,7 @@ enum { static int inputc(void); static void deinputc(int); -static void fillbuf(int); +static void fillargbuf(int); static int eatspace(void); static int parsequote(int); static int parseescape(void); @@ -121,7 +121,7 @@ deinputc(int ch) } static void -fillbuf(int ch) +fillargbuf(int ch) { if (argbpos >= argbsz) { argbsz *= 2; @@ -156,11 +156,11 @@ parsequote(int q) while ((ch = inputc()) != EOF) { if (ch == q) { - fillbuf('\0'); + fillargbuf('\0'); return 0; } if (ch != '\n') { - fillbuf(ch); + fillargbuf(ch); argbpos++; } } @@ -173,7 +173,7 @@ parseescape(void) int ch; if ((ch = inputc()) != EOF) { - fillbuf(ch); + fillargbuf(ch); argbpos++; return ch; } @@ -208,14 +208,14 @@ poparg(void) enprintf(EXIT_FAILURE, "backslash at EOF\n"); break; default: - fillbuf(ch); + fillargbuf(ch); argbpos++; break; } } out: if (argbpos > 0) { - fillbuf('\0'); + fillargbuf('\0'); if (eofstr && strcmp(argb, eofstr) == 0) return NULL; return argb;