From: Rudolf Polzer Date: Wed, 17 Aug 2011 19:10:07 +0000 (+0200) Subject: urllib: more error fixes X-Git-Tag: xonotic-v0.5.0~129 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ba75d9bb8447e27a469ccf1052a598a3090b003f;p=xonotic%2Fxonotic-data.pk3dir.git urllib: more error fixes --- diff --git a/qcsrc/common/urllib.qc b/qcsrc/common/urllib.qc index 934d15130..f4103ea69 100644 --- a/qcsrc/common/urllib.qc +++ b/qcsrc/common/urllib.qc @@ -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; diff --git a/qcsrc/common/urllib.qh b/qcsrc/common/urllib.qh index edbca8914..603aae90d 100644 --- a/qcsrc/common/urllib.qh +++ b/qcsrc/common/urllib.qh @@ -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);