[asterisk-commits] branch crichter/0.2.1 - r7950 in
/team/crichter/0.2.1/channels: ./ misdn/
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Jan 10 16:07:35 CST 2006
Author: crichter
Date: Tue Jan 10 16:07:32 2006
New Revision: 7950
URL: http://svn.digium.com/view/asterisk?rev=7950&view=rev
Log:
* added misdn_clean target and -DMISDNUSER_JOLLY define
* fixed possibility to set empty config variables
Modified:
team/crichter/0.2.1/channels/chan_misdn_config.c
team/crichter/0.2.1/channels/misdn/Makefile
Modified: team/crichter/0.2.1/channels/chan_misdn_config.c
URL: http://svn.digium.com/view/asterisk/team/crichter/0.2.1/channels/chan_misdn_config.c?rev=7950&r1=7949&r2=7950&view=diff
==============================================================================
--- team/crichter/0.2.1/channels/chan_misdn_config.c (original)
+++ team/crichter/0.2.1/channels/chan_misdn_config.c Tue Jan 10 16:07:32 2006
@@ -748,7 +748,10 @@
if (l) { \
new->item = (char *)calloc(l+1, sizeof(char)); \
strncpy(new->item,v->value,l); \
- } \
+ } else {\
+ new->item=(char*)calloc(1,sizeof(char));\
+ new->item[0]=0;\
+ }\
continue; \
} \
})
Modified: team/crichter/0.2.1/channels/misdn/Makefile
URL: http://svn.digium.com/view/asterisk/team/crichter/0.2.1/channels/misdn/Makefile?rev=7950&r1=7949&r2=7950&view=diff
==============================================================================
--- team/crichter/0.2.1/channels/misdn/Makefile (original)
+++ team/crichter/0.2.1/channels/misdn/Makefile Tue Jan 10 16:07:32 2006
@@ -5,7 +5,7 @@
#
# Verify those options with main Makefile
-CFLAGS += -pipe -c
+CFLAGS += -pipe -c -DMISDNUSER_JOLLY
SOURCES = isdn_lib.c isdn_msg_parser.c
OBJDIR = .
OBJS = isdn_lib.o isdn_msg_parser.o
@@ -39,4 +39,6 @@
clean:
rm -rf *.a *.o *.so
+
+misdn_clean:
rm -rf lib
More information about the asterisk-commits
mailing list