Commit Graph

21667 Commits

Author SHA1 Message Date
Travis Cross 3f24ef16b1
Avoid -Wunused-value warning
Don't use the SET_STATUS1 macro as it will always produce this
warning.  It's a rather 'interesting' macro that's probably best
avoided anyway.
2012-06-25 06:41:00 +00:00
Travis Cross cbde2faab2 Fix confusion between size_t and ssize_t
readfile returns a value of type ssize_t (signed) and returns -1 if an
error occurs.  In auth_readdb_internal, however, we were assigning the
return value of readfile to a variable of type size_t (unsigned), but
then testing this unsigned value to see if it was < 0, a
contradiction.  We would thus simultaneously fail to report the error
in readfile and would end up with a corrupted length value.
2012-06-25 06:38:30 +00:00
Travis Cross e6629ab5f6 Add missing return statement
sres_cached_answers_sockaddr is supposed to return ENOENT if no cached
records are found.  Because of the missing return statement, however,
it would never do this and would instead return something very likely
to be garbage.
2012-06-25 06:38:30 +00:00
Travis Cross 5077384c5b Remove a contradiction
base64_d returns a value of size_t, which is unsigned.  The value
therefore cannot be less than zero.  The second check testing whether
it is >= INT_MAX is not a contradiction, but it doesn't make any sense
to check for this (as far as I can tell).
2012-06-25 06:38:30 +00:00
Travis Cross 76a26648d4 Remove a tautological conditional
SU_LOG->log_level is declared as unsigned, hence it will always
be >= 0.
2012-06-25 06:38:29 +00:00
Travis Cross 9e52f33d91 Implement MEMLOCK and UNLOCK as functions
Converting these macros to functions declared static inline allow the
C type-checker to work and avoid warnings about unused expression
values.  These warnings break the build with clang.
2012-06-25 06:38:29 +00:00
Travis Cross c01a142665 Implement su_errno and su_seterrno as functions
This avoid warnings about expressions with unused values.  These
warnings break the build with clang.

An optimizing compiler should still inline these calls.  If that turns
out not to happen on some platform, we could rename the functions used
internally and declare them static inline.
2012-06-25 06:38:29 +00:00
Travis Cross 43f2c89a08 Fix memset calls in sofia-sip
These calls were zeroing only a pointer's worth of memory rather than
the actual size of the objects.
2012-06-25 06:38:29 +00:00
Anthony Minessale 7086a92f9b FS-4318 try this, success is 0 so that original patch was wrong 2012-06-24 15:05:59 -05:00
Travis Cross ee8c9e869b Fix clang warnings in mod_lua 2012-06-24 09:13:21 +00:00
Travis Cross 12efacb3c6 debian: Add mechanism to set C/C++ compiler 2012-06-24 08:49:59 +00:00
Travis Cross 3c2f914617 Fix warnings in sqlite 2012-06-24 08:34:52 +00:00
Travis Cross 932dccd475 Return const char* from apr_pool_tag
clang warns:

  warning: returning 'const char *' from a function with result type
    'char *' discards qualifiers [-Wincompatible-pointer-types]
2012-06-24 08:15:16 +00:00
Travis Cross a973fb6347 Fix memset calls in APR sha2 implementation
The implementation clears the context / state data from memory when it
is finished with it.  Prior to this commit, however, it was actually
only clearing the first 4 bytes on x86 or 8 bytes on x86_64.

clang warns:

  warning: argument to 'sizeof' in 'memset' call is the same
  expression as the destination; did you mean to dereference it?
      [-Wsizeof-pointer-memaccess]
2012-06-24 08:05:25 +00:00
Travis Cross f1183ef970 Fix use of switch_event_add_body
On some compilers this fixes the build.

gcc reports:

  error: format not a string literal and no format arguments

clang reports:

  error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security]
2012-06-24 07:38:08 +00:00
Travis Cross 453b42e301 Remove extraneous parenthesis
This causes a warning that breaks the build with clang.
2012-06-24 07:36:14 +00:00
Anthony Minessale 86df8b338e more v18 changes 2012-06-23 19:33:26 -05:00
Anthony Minessale 1465ba90e6 tweaks 2012-06-23 19:00:53 -05:00
Anthony Minessale 93a8445f1c change name 2012-06-23 18:53:29 -05:00
Anthony Minessale 0f6647d278 add some inital v18 interface points 2012-06-23 18:48:26 -05:00
Travis Cross e38f0a1b02 debian: Correct alphabetization 2012-06-23 22:34:19 +00:00
Travis Cross f79a37a363 debian: Add option to use existing .orig.* file 2012-06-23 22:34:19 +00:00
Travis Cross d18a7ffa26 Bundle .version file with debian nightlies
This adds the .version file to nightlies produced with debian/util.sh.
2012-06-23 22:34:18 +00:00
Travis Cross b16821944e Harmonize debian nightly version with print_git_revision
Debian nightlies created with debian/util.sh now have the version set
in the same format as Makefile.am produces.  Unlike Makefile.am,
however, we show the orig packaging date rather than the date of the
latest commit, as the latter could legitimately regress and we need
this to always increment.
2012-06-23 22:34:18 +00:00
Travis Cross ad53499b42
Always set the ZRTP SAS verified flag on our side
When we're terminating ZRTP to an IVR or to a leg which is not
ZRTP-capable, there's no way for us to make an intelligent decision
about whether this flag should be set.  For a client to consider the
SAS as verified, however, both sides need to set this flag.  By always
setting this flag on our side, we leave the decision completely in the
hands of the client where we hope there is a careful human.

Signed-off-by: Travis Cross <tc@traviscross.com>
2012-06-23 22:34:06 +00:00
Anthony Minessale ecb84bd126 FS-4336 --resolve 2012-06-23 14:55:11 -05:00
Jeff Lenk 2171e5830d vs2010 reswig 2012-06-23 16:58:44 -05:00
Anthony Minessale 398c84b671 swigall 2012-06-23 16:40:42 -05:00
Anthony Minessale a5021fa384 FS-4337 --resolve this actually uncovered a bug cos it was supposed to be rtcp_bytes not bytes 2012-06-23 14:03:06 -05:00
Anthony Minessale cfe435c667 fix typo 2012-06-23 06:18:09 -05:00
Anthony Minessale 76fae0cec0 add video support to lib/mod.dingaling this needs testing, google voice won't work with video calls so disable video codecs if you use that 2012-06-22 18:15:06 -05:00
Anthony Minessale 3d36d8557b change default number to 97 2012-06-22 18:15:06 -05:00
Anthony Minessale 8b4c9dc42c FS-3659 and some refactor for rtcp ice and video ice and rtcp 2012-06-22 18:15:06 -05:00
Anthony Minessale c30940462a update stun to more modern spec 2012-06-22 18:15:06 -05:00
dschreiber c28ced7253 Merging FS-3432 switch_core_hash.c patch in from Tamas 2012-06-21 14:09:49 -07:00
Brian West 37e61ee6eb FS-4320 sigh 2012-06-21 13:07:38 -05:00
Jeff Lenk 2091f4f0d3 FS-4319 --resolve portaudio not always moving the active call to the top of its internal list (invalid ringing) 2012-06-21 09:52:13 -05:00
Mathieu Rene a0a9efcf02 Merge branch 'master' of ssh://git.freeswitch.org:222/freeswitch 2012-06-20 15:43:20 -04:00
Mathieu Rene d67031a9c6 FS-4007 2012-06-20 15:42:57 -04:00
Jeff Lenk 9e90bbd12b Revert "FS-4321 fix startup with odbc"
This reverts commit 28fd1f97ea.

this needs to be fixed a different way
2012-06-20 11:05:53 -05:00
Giovanni Maruzzelli a80b68367c FS-4278 skypopen: oss driver compiles on kernels >= 3.4.0 2012-06-20 11:28:57 +02:00
dschreiber d6c482e40f Added support for Content-Type and other optional headers when doing an HTTP PUT 2012-06-19 21:25:00 -07:00
Michael Jerris 6ea4a5c503 typo 2012-06-19 22:43:28 -04:00
Michael Jerris 773fb5e3a5 use reg call id on reboot notifies and pass it back in reverse auth lookup 2012-06-19 21:58:43 -04:00
Michael Jerris f351a908ff wow grandstream 2012-06-19 16:02:14 -04:00
Michael Jerris ea503ea23e fix pnp config for grandstream 2012-06-19 14:22:57 -04:00
dschreiber 1e696d2c93 FS-3577 : After Tamas's fixes and new logging so we can see the erl_errors, re-applying this 10ms polling interval patch that Tony committed a few months ago. Please report any issues. 2012-06-19 09:13:29 -07:00
dschreiber 6069adece5 Revert "add thread safe hash multi delete function and make callback optional"
I don't see this command being used anywhere. Since I don't like to touch core files unless absolutely necessary I'm reverting these two changes. I've emailed the author, Tamas, for an explanation. The other patches for FS-3432 (merged in now) appear to work fine without this commit.

This reverts commit fbcb862265.
2012-06-19 08:51:28 -07:00
dschreiber 7e6018985c Merge remote branch 'origin/master' into FS-3432 2012-06-19 08:10:54 -07:00
Jeff Lenk 28fd1f97ea FS-4321 fix startup with odbc 2012-06-19 09:02:12 -05:00