]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
urllib: more error fixes
authorRudolf Polzer <divVerent@xonotic.org>
Wed, 17 Aug 2011 19:10:07 +0000 (21:10 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Wed, 17 Aug 2011 19:10:07 +0000 (21:10 +0200)
qcsrc/common/urllib.qc
qcsrc/common/urllib.qh

index 934d1513013428eece084c2d991853d96a51773f..f4103ea69bf54979c0b8688874bedcc2c71f1d1a 100644 (file)
@@ -64,7 +64,7 @@ float url_URI_Get_Callback(float id, float status, string data)
        }
 }
 
-void url_fopen(string url, float mode, entity pass, url_ready_func rdy)
+void url_fopen(string url, float mode, url_ready_func rdy, entity pass)
 {
        entity e;
        float i;
@@ -147,7 +147,7 @@ void url_fopen(string url, float mode, entity pass, url_ready_func rdy)
        }
 }
 
-void url_fclose(entity e, entity pass, url_ready_func rdy)
+void url_fclose(entity e, url_ready_func rdy, entity pass)
 {
        float i;
 
index edbca89140c3b857b780d90d328cd7b2de677c66..603aae90d44b9f30d8e29313131b12624a89c018 100644 (file)
@@ -5,8 +5,8 @@ float URL_READY_CANREAD  =  2;
 // errors: -1, or negative HTTP status code
 typedef void(entity handle, entity pass, float status) url_ready_func;
 
-void url_fopen(string url, float mode, entity pass, url_ready_func rdy);
-void url_fclose(entity e, entity pass, url_ready_func rdy);
+void url_fopen(string url, float mode, url_ready_func rdy, entity pass);
+void url_fclose(entity e, url_ready_func rdy, entity pass);
 string url_fgets(entity e);
 void url_fputs(entity e, string s);