From ba75d9bb8447e27a469ccf1052a598a3090b003f Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 17 Aug 2011 21:10:07 +0200 Subject: [PATCH] urllib: more error fixes --- qcsrc/common/urllib.qc | 4 ++-- qcsrc/common/urllib.qh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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); -- 2.39.2