]> granicus.if.org Git - apache/commitdiff
Use APR type; rename var.
authorGuenter Knauf <fuankg@apache.org>
Sat, 14 Sep 2013 11:05:05 +0000 (11:05 +0000)
committerGuenter Knauf <fuankg@apache.org>
Sat, 14 Sep 2013 11:05:05 +0000 (11:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1523211 13f79535-47bb-0310-9956-ffa450edef68

modules/lua/lua_request.c

index c8fc583409b642ba9f0fdf782f0af0eacc84eb73..fd4b856a5c3e2362e6b27f4f0437a6783280d4d7 100644 (file)
@@ -2145,10 +2145,10 @@ static int lua_websocket_write(lua_State *L)
             ap_rputc(len, r);
         } 
         else if (len < 65535) {
-            unsigned short c = len;
+            apr_uint16_t slen = len;
             ap_rputc(126, r); 
-            c = htons(c);
-            ap_rwrite((char*) &c, 2, r);
+            slen = htons(slen);
+            ap_rwrite((char*) &slen, 2, r);
         }
         else {
             apr_uint64_t llen = len;