[asterisk-commits] russell: branch 1.6.2 r253620 - in /branches/1.6.2: ./ cdr/ main/ main/stdtime/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat Mar 20 12:33:07 CDT 2010
Author: russell
Date: Sat Mar 20 12:33:03 2010
New Revision: 253620
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=253620
Log:
Merged revisions 253540 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r253540 | russell | 2010-03-20 07:03:07 -0500 (Sat, 20 Mar 2010) | 2 lines
Resolve more compiler warnings on FreeBSD.
........
Modified:
branches/1.6.2/ (props changed)
branches/1.6.2/cdr/cdr_pgsql.c
branches/1.6.2/main/features.c
branches/1.6.2/main/stdtime/localtime.c
branches/1.6.2/main/tcptls.c
Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.2/cdr/cdr_pgsql.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/cdr/cdr_pgsql.c?view=diff&rev=253620&r1=253619&r2=253620
==============================================================================
--- branches/1.6.2/cdr/cdr_pgsql.c (original)
+++ branches/1.6.2/cdr/cdr_pgsql.c Sat Mar 20 12:33:03 2010
@@ -165,7 +165,7 @@
if (strcmp(cur->name, "start") == 0 || strcmp(cur->name, "calldate") == 0) {
if (strncmp(cur->type, "int", 3) == 0) {
LENGTHEN_BUF2(13);
- ast_str_append(&sql2, 0, "%s%ld", first ? "" : ",", cdr->start.tv_sec);
+ ast_str_append(&sql2, 0, "%s%ld", first ? "" : ",", (long) cdr->start.tv_sec);
} else if (strncmp(cur->type, "float", 5) == 0) {
LENGTHEN_BUF2(31);
ast_str_append(&sql2, 0, "%s%f", first ? "" : ",", (double)cdr->start.tv_sec + (double)cdr->start.tv_usec / 1000000.0);
@@ -179,7 +179,7 @@
} else if (strcmp(cur->name, "answer") == 0) {
if (strncmp(cur->type, "int", 3) == 0) {
LENGTHEN_BUF2(13);
- ast_str_append(&sql2, 0, "%s%ld", first ? "" : ",", cdr->answer.tv_sec);
+ ast_str_append(&sql2, 0, "%s%ld", first ? "" : ",", (long) cdr->answer.tv_sec);
} else if (strncmp(cur->type, "float", 5) == 0) {
LENGTHEN_BUF2(31);
ast_str_append(&sql2, 0, "%s%f", first ? "" : ",", (double)cdr->answer.tv_sec + (double)cdr->answer.tv_usec / 1000000.0);
@@ -193,7 +193,7 @@
} else if (strcmp(cur->name, "end") == 0) {
if (strncmp(cur->type, "int", 3) == 0) {
LENGTHEN_BUF2(13);
- ast_str_append(&sql2, 0, "%s%ld", first ? "" : ",", cdr->end.tv_sec);
+ ast_str_append(&sql2, 0, "%s%ld", first ? "" : ",", (long) cdr->end.tv_sec);
} else if (strncmp(cur->type, "float", 5) == 0) {
LENGTHEN_BUF2(31);
ast_str_append(&sql2, 0, "%s%f", first ? "" : ",", (double)cdr->end.tv_sec + (double)cdr->end.tv_usec / 1000000.0);
Modified: branches/1.6.2/main/features.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/main/features.c?view=diff&rev=253620&r1=253619&r2=253620
==============================================================================
--- branches/1.6.2/main/features.c (original)
+++ branches/1.6.2/main/features.c Sat Mar 20 12:33:03 2010
@@ -30,6 +30,7 @@
#include "asterisk/_private.h"
#include <pthread.h>
+#include <signal.h>
#include <sys/time.h>
#include <sys/signal.h>
#include <netinet/in.h>
Modified: branches/1.6.2/main/stdtime/localtime.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/main/stdtime/localtime.c?view=diff&rev=253620&r1=253619&r2=253620
==============================================================================
--- branches/1.6.2/main/stdtime/localtime.c (original)
+++ branches/1.6.2/main/stdtime/localtime.c Sat Mar 20 12:33:03 2010
@@ -48,6 +48,7 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+#include <signal.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <float.h>
Modified: branches/1.6.2/main/tcptls.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/main/tcptls.c?view=diff&rev=253620&r1=253619&r2=253620
==============================================================================
--- branches/1.6.2/main/tcptls.c (original)
+++ branches/1.6.2/main/tcptls.c Sat Mar 20 12:33:03 2010
@@ -33,6 +33,7 @@
#include <fcntl.h>
#endif
+#include <signal.h>
#include <sys/signal.h>
#include "asterisk/compat.h"
More information about the asterisk-commits
mailing list