提交 a523e775 authored 作者: Moises Silva's avatar Moises Silva

freetdm: get rid of Linux warnings in testsangomaboost.c

上级 bce61e7f
...@@ -45,10 +45,14 @@ ...@@ -45,10 +45,14 @@
#include <signal.h> #include <signal.h>
#include "freetdm.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#ifdef __linux__
#define __USE_BSD
#include <unistd.h>
#endif
#include "freetdm.h"
/* arbitrary limit for max calls in this sample program */ /* arbitrary limit for max calls in this sample program */
...@@ -338,9 +342,9 @@ int main(int argc, char *argv[]) ...@@ -338,9 +342,9 @@ int main(int argc, char *argv[])
exit(-1); exit(-1);
} }
if (!strcasecmp(argv[2], "cpe")) { if (!strcmp(argv[2], "cpe")) {
sigtype = "pri_cpe"; sigtype = "pri_cpe";
} else if (!strcasecmp(argv[2], "net")) { } else if (!strcmp(argv[2], "net")) {
sigtype = "pri_net"; sigtype = "pri_net";
} else { } else {
fprintf(stderr, "Valid signaling types are cpe and net only\n"); fprintf(stderr, "Valid signaling types are cpe and net only\n");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论