Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

string.h? #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ include os.mk
include tcsip.mk

RE_CFLAGS = -DHAVE_INTTYPES_H -DHAVE_STDBOOL_H \
-DHAVE_INET6 -DHAVE_GAI_STRERROR -DRELEASE
-DHAVE_INET6 -DHAVE_GAI_STRERROR -DRELEASE -D_XOPEN_SOURCE -D_DEFAULT_SOURCE

INCL = -Ideps/include/ -I./src -I./src/util -I../srtp/include/ -I../srtp/crypto/include/ \
-I../opus/include/ -I../speex/include -Ig711 -I./src/rehttp/
Expand Down
1 change: 1 addition & 0 deletions src/tcsip/tcmedia.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <srtp/srtp.h>
#include <sys/time.h>
#include <string.h>

#include "re.h"
#include "jitter/ajitter.h"
Expand Down
2 changes: 1 addition & 1 deletion src/tcsip/tcmessage.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ static int msend(struct tcmessages *tcmsg, struct sip_addr *to, struct mbuf *dat

tm = gmtime(&tv.tv_sec);
strftime(dt, sizeof dt , "Date: %a, %d %b %Y %H:%M:%S", tm);
snprintf(date, sizeof date, "%s.%06u GMT\r\n", dt, tv.tv_usec);
snprintf(date, sizeof date, "%s.%06lu GMT\r\n", dt, tv.tv_usec);

err = sip_drequestf(&req, tcmsg->sip, true, "MESSAGE", dlg,
0, NULL, message_sent, message_response, ctx,
Expand Down
2 changes: 1 addition & 1 deletion src/util/ctime.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ bool find_date(const struct sip_hdr *hdr, const struct sip_msg *msg, void *arg)
} else {
ret = strptime(tmp.p, "%a, %d %b %Y %H:%M:%S.", &tm);
if(ret) {
sscanf(ret, "%06u GMT", &tv->tv_usec);
sscanf(ret, "%06lu GMT", &tv->tv_usec);
}
}

Expand Down