From c64c0795f30df0d480999c1dae36f8ff0e2715a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Wed, 2 Oct 2019 12:38:49 +0800 Subject: Rename variable to make it more consistent --- request.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/request.h b/request.h index 136f202..ddf296d 100644 --- a/request.h +++ b/request.h @@ -17,7 +17,7 @@ inline void request(size_t (*writefunction)(void *, size_t, size_t, void *) { va_list ap; char *p, *sval; - unsigned int ival; + unsigned int uval; size_t length = strlen(server_url) + strlen(fmt); va_start(ap, fmt); @@ -30,10 +30,10 @@ inline void request(size_t (*writefunction)(void *, size_t, size_t, void *) length += strlen(sval) - 2; break; case 'u': - ival = va_arg(ap, unsigned int); + uval = va_arg(ap, unsigned int); do { length++; - } while ((ival /= 10)); + } while ((uval /= 10)); length -= 2; break; default: @@ -55,8 +55,8 @@ inline void request(size_t (*writefunction)(void *, size_t, size_t, void *) strcat(url, sval); break; case 'u': - ival = va_arg(ap, unsigned int); - sprintf(url, "%s%u", url, ival); + uval = va_arg(ap, unsigned int); + sprintf(url, "%s%u", url, uval); break; default: break; -- cgit v1.2.3