Browse code

- exported a function from parse event useful in presence module

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@2606 689a6050-402a-0410-94f2-e92a70836424

Anca Vamanu authored on 16/08/2007 08:37:29
Showing 1 changed files
... ...
@@ -1086,6 +1086,7 @@ int update_in_list(subs_t* s, subs_t* s_array, int n)
1086 1086
 			ls->expires= ls->expires;
1087 1087
 			ls->version= ls->version;
1088 1088
 			ls->status= ls->status;
1089
+			return 1;
1089 1090
 		}
1090 1091
 		ls= ls->next;
1091 1092
 	}
... ...
@@ -1140,7 +1141,7 @@ subs_t* get_subs_dialog(str* pres_uri, pres_ev_t* event, str* sender)
1140 1141
 				if(update_in_list(s, s_array, n)< 0)
1141 1142
 				{
1142 1143
 					LOG(L_ERR, "PRESENCE: get_subs_dialog: ERROR"
1143
-							"updating subscription in list\n");
1144
+							" updating subscription in list\n");
1144 1145
 					lock_release(&subs_htable[hash_code].lock);
1145 1146
 					goto error;
1146 1147
 				}