diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-01-31 13:28:01 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-01-31 13:28:14 +0100 |
commit | b98468404c7c2a3adc5a591a9472fdd957a01341 (patch) | |
tree | 4b028233467f38d66555f13ce4b20351ac6d3403 /src/examples/upgrade_example.c | |
parent | c623d35dcc88d0e90a239289b947f0199ad02d5b (diff) | |
download | libmicrohttpd-b98468404c7c2a3adc5a591a9472fdd957a01341.tar.gz libmicrohttpd-b98468404c7c2a3adc5a591a9472fdd957a01341.zip |
avoid c99 construct, we do not yet require c99 elsewhere
Diffstat (limited to 'src/examples/upgrade_example.c')
-rw-r--r-- | src/examples/upgrade_example.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/examples/upgrade_example.c b/src/examples/upgrade_example.c index f77f58fc..7a893d2f 100644 --- a/src/examples/upgrade_example.c +++ b/src/examples/upgrade_example.c | |||
@@ -68,9 +68,10 @@ send_all (MHD_socket sock, | |||
68 | size_t len) | 68 | size_t len) |
69 | { | 69 | { |
70 | ssize_t ret; | 70 | ssize_t ret; |
71 | size_t off; | ||
71 | 72 | ||
72 | make_blocking (sock); | 73 | make_blocking (sock); |
73 | for (size_t off = 0; off < len; off += ret) | 74 | for (off = 0; off < len; off += ret) |
74 | { | 75 | { |
75 | ret = send (sock, | 76 | ret = send (sock, |
76 | &buf[off], | 77 | &buf[off], |