[Freeswitch-svn] [commit] r10950 - freeswitch/trunk/libs/esl
FreeSWITCH SVN
mikej at freeswitch.org
Fri Dec 26 09:54:30 PST 2008
Author: mikej
Date: Fri Dec 26 12:54:30 2008
New Revision: 10950
Log:
tweak
Modified:
freeswitch/trunk/libs/esl/Makefile
freeswitch/trunk/libs/esl/fs_cli.c
Modified: freeswitch/trunk/libs/esl/Makefile
==============================================================================
--- freeswitch/trunk/libs/esl/Makefile (original)
+++ freeswitch/trunk/libs/esl/Makefile Fri Dec 26 12:54:30 2008
@@ -4,7 +4,7 @@
PICKY=-O2 -ffast-math -Wall -Werror -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
CFLAGS=$(INCS) -D_GNU_SOURCE $(DEBUG) -I$(LIBEDIT_DIR)/src/ $(PICKY)
MYLIB=libesl.a
-LIBS=-lesl -lncurses -lpthread
+LIBS=-lncurses -lpthread -lesl
LDFLAGS=-L.
OBJS=src/esl.o src/esl_event.o src/esl_threadmutex.o src/esl_config.o
SRC=src/esl.c src/esl_event.c src/esl_threadmutex.c src/esl_config.c
@@ -16,10 +16,6 @@
ar rcs $(MYLIB) $(OBJS)
ranlib $(MYLIB)
-$(OBJS): $(SRC)
- $(CC) $(CC_CFLAGS) $(CFLAGS) -c $< -o $@
-
-
testserver: $(MYLIB) testserver.c
$(CC) $(CC_CFLAGS) $(CFLAGS) testserver.c -o testserver $(LDFLAGS) $(LIBS)
Modified: freeswitch/trunk/libs/esl/fs_cli.c
==============================================================================
--- freeswitch/trunk/libs/esl/fs_cli.c (original)
+++ freeswitch/trunk/libs/esl/fs_cli.c Fri Dec 26 12:54:30 2008
@@ -402,7 +402,7 @@
} else {
snprintf(cmd_str, sizeof(cmd_str), "api %s\n\n", cmd);
esl_send_recv(&handle, cmd_str);
- if (handle.last_sr_event) {
+ if (handle.last_sr_event && handle.last_sr_event->body) {
printf("%s\n", handle.last_sr_event->body);
}
}
More information about the Freeswitch-svn
mailing list