aboutsummaryrefslogtreecommitdiff
path: root/src/examples/upgrade_example.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-01-31 13:28:01 +0100
committerChristian Grothoff <christian@grothoff.org>2017-01-31 13:28:14 +0100
commitb98468404c7c2a3adc5a591a9472fdd957a01341 (patch)
tree4b028233467f38d66555f13ce4b20351ac6d3403 /src/examples/upgrade_example.c
parentc623d35dcc88d0e90a239289b947f0199ad02d5b (diff)
downloadlibmicrohttpd-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.c3
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],