gnokii-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-56


From: Daniele Forsi
Subject: [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-568-gcc47811
Date: Wed, 19 Feb 2014 17:56:53 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".

The branch, master has been updated
       via  cc47811355cd45135b31a3ca2cf2618176295982 (commit)
      from  86e79d120de0d70df535c40e758545773d947cef (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=cc47811355cd45135b31a3ca2cf2618176295982


commit cc47811355cd45135b31a3ca2cf2618176295982
Author: Daniele Forsi <address@hidden>
Date:   Wed Feb 19 18:52:43 2014 +0100

    Fix variable type for return value from ucs2_encode()
    
    It is a signed value.

diff --git a/common/gsm-encoding.c b/common/gsm-encoding.c
index 27aa553..7ab6079 100644
--- a/common/gsm-encoding.c
+++ b/common/gsm-encoding.c
@@ -423,7 +423,8 @@ static unsigned char char_def_alphabet_ext_encode(unsigned 
int value)
  */
 GNOKII_API int gn_char_def_alphabet(unsigned char *string)
 {
-       unsigned int i, ucs2len, inlen = strlen(string);
+       int ucs2len;
+       unsigned int i, inlen = strlen(string);
        char *ucs2str;
 
        /* First, let's know the encoding. We convert it from something to 
UCS-2 */
@@ -639,7 +640,8 @@ int char_7bit_pack(unsigned int offset, unsigned char 
*input,
        unsigned char *out_num = output; /* Current pointer to the output 
buffer */
        unsigned int in_num;
        int bits;                    /* Number of bits directly copied to 
output buffer */
-       unsigned int ucs2len, i = 0, len = strlen(input);
+       int ucs2len;
+       unsigned int i = 0, len = strlen(input);
        char *ucs2str;
 
        /* First, let's know the encoding. We convert it from something to 
UCS-2 */
diff --git a/common/gsm-sms.c b/common/gsm-sms.c
index 08e7199..8c22b23 100644
--- a/common/gsm-sms.c
+++ b/common/gsm-sms.c
@@ -1515,7 +1515,8 @@ static gn_error sms_data_encode(gn_sms *sms, gn_sms_raw 
*rawsms)
                }
 
                case GN_SMS_DATA_Text: {
-                       unsigned int length, udh_length, offset = 
rawsms->user_data_length;
+                       int length;
+                       unsigned int udh_length, offset = 
rawsms->user_data_length;
 
                        length = sms->user_data[i].length;
                        if (sms->udh.length)

-----------------------------------------------------------------------

Summary of changes:
 common/gsm-encoding.c |    6 ++++--
 common/gsm-sms.c      |    3 ++-
 2 files changed, 6 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
libgnokii and core programs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]