Re: Kannel automatic compilation test

Harrie Hazewinkel <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <1145824.1031062474@localhost>
Stipe,

Would this patch solve it. Not knowing the protocol spec of SMASI.


Index: smasi_pdu.c
===================================================================
RCS file: /home/cvs/gateway/gw/smsc/smasi_pdu.c,v
retrieving revision 1.2
diff -u -r1.2 smasi_pdu.c
--- smasi_pdu.c 19 Aug 2002 09:15:16 -0000      1.2
+++ smasi_pdu.c 3 Sep 2002 12:16:21 -0000
@@ -140,7 +140,7 @@
     }

     switch (pdu->type) {
-    #define NONTERMINATED(name)
+    #define NONTERMINATED(name) p = *(&p);
     #define COMATERMINATED(name) \
     if (p->name != NULL) { octstr_append_cstr(os, #name); \
     octstr_append_char(os, '='); \
@@ -177,8 +177,8 @@
     type_name = (temp ? octstr_get_cstr(temp) : "");

     if (strcmp(type_name, "dummy") == 0) type = 0;
-    #define NONTERMINATED(name)
-    #define COMATERMINATED(name)
+    #define NONTERMINATED(name) p = *(&p);
+    #define COMATERMINATED(name) p = *(&p);
     #define PDU(name, id, fields) \
     else if (strcmp(type_name, #name) == 0) type = id;
     #include "smasi_pdu.def"
@@ -191,7 +191,7 @@
     skip_until_after_colon(data_without_len, &pos);

     switch (type) {
-    #define NONTERMINATED(name)
+    #define NONTERMINATED(name) p = *(&p);
     #define COMATERMINATED(name) \
                 if (octstr_str_compare(field_name, #name) == 0 && 
field_value != NULL) \
                     p->name = octstr_duplicate(field_value);
@@ -226,7 +226,7 @@
     debug("sms.smasi", 0, "SMASI PDU %p dump:", (void *) pdu);
     debug("sms.smasi", 0, "  type_name: %s", pdu->type_name);
     switch (pdu->type) {
-    #define NONTERMINATED(name)
+    #define NONTERMINATED(name) p = *(&p);
     #define COMATERMINATED(name) \
     octstr_dump_short(p->name, 2, #name);
     #define PDU(name, id, fields) \


Harrie

Internet Management Consulting
mailto:[email protected]                http ://www.mod-snmp.com/
-------------------------------------------------------------------
Author of MOD-SNMP, enabling SNMP management to the Apache server.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.