Pārlūkot izejas kodu

Fix warnings on LP64 plarforms out there (all 64-bit amd64/emt64 unixes
and linuxes) where sizeof(*void) != sizeof(int).

Maxim Sobolev 17 gadi atpakaļ
vecāks
revīzija
422e7e6595
2 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 2 2
      modules_s/rls/rls_handler.c
  2. 2 2
      modules_s/rls/rls_mod.c

+ 2 - 2
modules_s/rls/rls_handler.c

@@ -367,10 +367,10 @@ static int handle_renew_subscription(struct sip_msg *m, int send_error_responses
 int handle_rls_subscription(struct sip_msg* _m, char *send_bad_resp)
 {
 	int res;
-	int send_err = 1;
+	long send_err = 1;
 	
 	PROF_START(rls_handle_subscription)
-	send_err = (int)send_bad_resp;
+	send_err = (long)send_bad_resp;
 	
 	res = parse_rls_headers(_m);
 	if (res == -1) {

+ 2 - 2
modules_s/rls/rls_mod.c

@@ -342,7 +342,7 @@ void rls_mod_destroy(void)
 static int rls_subscribe_fixup(void** param, int param_no)
 {
 	/* char *xcap_server = NULL; */
-	int send_errors = 0;
+	long send_errors = 0;
 
 /*	if (param_no == 1) {
 		if (!param) {
@@ -365,7 +365,7 @@ static int rls_subscribe_fixup(void** param, int param_no)
 		if (param) {
 			if (*param) send_errors = atoi(*param);
 		}
-		DEBUG_LOG("rls_subscribe_fixup(): send errors: %d\n", send_errors);
+		DEBUG_LOG("rls_subscribe_fixup(): send errors: %ld\n", send_errors);
 		*param = (void*)send_errors;
 	}
 	return 0;