Fix 64-bit cast.
authorScott Cantor <cantor.2@osu.edu>
Sun, 16 Sep 2007 03:27:08 +0000 (03:27 +0000)
committerScott Cantor <cantor.2@osu.edu>
Sun, 16 Sep 2007 03:27:08 +0000 (03:27 +0000)
fastcgi/shibauthorizer.cpp
fastcgi/shibresponder.cpp

index d0edc56..dd1b305 100644 (file)
@@ -273,7 +273,7 @@ int main(void)
 #ifdef _DEBUG\r
                 cerr << "shib: doCheckAuthN handled the request" << endl;\r
 #endif\r
-                switch((int)res.second) {\r
+                switch((long)res.second) {\r
                     case SHIB_RETURN_OK:\r
                         print_ok(sta.m_headers);\r
                         continue;\r
@@ -297,7 +297,7 @@ int main(void)
 #ifdef _DEBUG\r
                 cerr << "shib: doExportAssertions handled request" << endl;\r
 #endif\r
-                switch((int)res.second) {\r
+                switch((long)res.second) {\r
                     case SHIB_RETURN_OK:\r
                         print_ok(sta.m_headers);\r
                         continue;\r
@@ -321,7 +321,7 @@ int main(void)
 #ifdef _DEBUG\r
                 cerr << "shib: doCheckAuthZ handled request" << endl;\r
 #endif\r
-                switch((int)res.second) {\r
+                switch((long)res.second) {\r
                     case SHIB_RETURN_OK:\r
                         print_ok(sta.m_headers);\r
                         continue;\r
index 23e25ef..30f8b23 100644 (file)
@@ -314,7 +314,7 @@ int main(void)
 #ifdef _DEBUG\r
                 cerr << "shib: doHandler handled the request" << endl;\r
 #endif\r
-                switch((int)res.second) {\r
+                switch((long)res.second) {\r
                     case SHIB_RETURN_OK:\r
                         print_ok();\r
                         break;\r