Use FCGI_INT_T instead of FCGI_LONG_T as appropriate
authorJeremy Tan <[email protected]>
Sat, 14 Sep 2013 01:54:14 +0000 (09:54 +0800)
committerJeremy Tan <[email protected]>
Sat, 14 Sep 2013 01:54:14 +0000 (09:54 +0800)
The difference will matter on platforms where sizeof(long) != sizeof(int)

server/actuator.c

index b3cb361..ff51732 100644 (file)
@@ -220,7 +220,7 @@ void Actuator_Handler(FCGIContext * context, char * params)
 
        // key/value pairs
        FCGIValue values[] = {
-               {"id", &id, FCGI_REQUIRED(FCGI_LONG_T)}, 
+               {"id", &id, FCGI_REQUIRED(FCGI_INT_T)}, 
                {"set", &set, FCGI_DOUBLE_T},
                {"start_time", &start_time, FCGI_DOUBLE_T},
                {"end_time", &end_time, FCGI_DOUBLE_T},

UCC git Repository :: git.ucc.asn.au