]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
signed-unsigned comparison fixes and removed unused parameter.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 1 Nov 2012 14:39:41 +0000 (15:39 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 1 Nov 2012 14:39:41 +0000 (15:39 +0100)
lib/ext/srtp.c

index d1554a2117c99f88f5e7f0a7759bcaf63e4b2cb5..46a870a0a020d758008ed71e30efb232b03c20e4 100644 (file)
@@ -83,7 +83,7 @@ static const srtp_profile_st profile_names[] = {
 static gnutls_srtp_profile_t find_profile (const char *str, const char *end)
 {
   const srtp_profile_st *prof = profile_names;
-  int len;
+  unsigned int len;
   if (end != NULL)
     {
       len = end - str;
@@ -155,7 +155,8 @@ static int
 _gnutls_srtp_recv_params (gnutls_session_t session,
                           const uint8_t *data, size_t _data_size)
 {
-  int i, j, ret;
+  unsigned int i, j;
+  int ret;
   const uint8_t *p = data;
   int len;
   ssize_t data_size = _data_size;
@@ -205,7 +206,6 @@ static int
 _gnutls_srtp_send_params (gnutls_session_t session,
                           gnutls_buffer_st* extdata)
 {
-  uint16_t len;
   unsigned i;
   int total_size = 0, ret;
   srtp_ext_st *priv;