浏览代码

- fixed a process_lump bug (non-anchored lumps where "skipped" -- luckily no one seems to have used them so far)
- sun cc warning fixes

Andrei Pelinescu-Onciul 22 年之前
父节点
当前提交
b36461de1f
共有 4 个文件被更改,包括 8 次插入4 次删除
  1. 1 1
      Makefile.defs
  2. 0 1
      msg_translator.c
  3. 2 2
      parser/parse_rr.c
  4. 5 0
      test/ifls.c

+ 1 - 1
Makefile.defs

@@ -25,7 +25,7 @@
 VERSION = 0
 PATCHLEVEL = 8
 SUBLEVEL =   11
-EXTRAVERSION = pre23
+EXTRAVERSION = pre24
 
 RELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
 OS = $(shell uname -s | sed -e s/SunOS/solaris/ | tr "[A-Z]" "[a-z]")

+ 0 - 1
msg_translator.c

@@ -980,7 +980,6 @@ static inline void process_lumps(	struct sip_msg* msg,
 				if ((t->op==LUMP_ADD_OPT) &&
 						(!lump_check_opt(t->u.cond, msg, send_sock))) 
 					continue;
-				break;
 				/* just add it here! */
 				/* process before  */
 				for(r=t->before;r;r=r->before){

+ 2 - 2
parser/parse_rr.c

@@ -118,7 +118,7 @@ int parse_rr(struct hdr_field* _h)
 		}
 
 		     /* Append the structure as last parameter of the linked list */
-		if (!_h->parsed) (rr_t*)_h->parsed = r;
+		if (!_h->parsed) _h->parsed = (void*)r;
 		if (last) last->next = r;
 		last = r;
 	}
@@ -129,7 +129,7 @@ int parse_rr(struct hdr_field* _h)
 	return -1;
 
  ok:
-	if (!_h->parsed) (rr_t*)_h->parsed = r;
+	if (!_h->parsed) _h->parsed = (void*)r;
 	if (last) last->next = r;
 	return 0;
 }

+ 5 - 0
test/ifls.c

@@ -26,6 +26,11 @@
  * along with this program; if not, write to the Free Software 
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
+ /*
+  * History:
+  * --------
+  *  2002-09-09  created by andrei
+  */