diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-02 12:38:49 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-02 12:38:49 +0800 |
commit | c64c0795f30df0d480999c1dae36f8ff0e2715a6 (patch) | |
tree | 169709efe2ad5fc5957bec032df9d75d346545d9 | |
parent | 70e3bfd86acc04ed1a87f63d58bd814bad07ad2d (diff) |
Rename variable to make it more consistent
-rw-r--r-- | request.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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; |