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-28


From: Daniele Forsi
Subject: [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-285-gcaa197e
Date: Fri, 15 Jul 2011 14:30:07 +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  caa197ea9ca85f70e51a5e71a126bdec6dfc8b09 (commit)
      from  2380516af00e429392c642d5a8d1158be6f8e012 (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=caa197ea9ca85f70e51a5e71a126bdec6dfc8b09


commit caa197ea9ca85f70e51a5e71a126bdec6dfc8b09
Author: Daniele Forsi <address@hidden>
Date:   Fri Jul 15 16:28:54 2011 +0200

    Simplify code
    
    Check only once if foundmodel is NULL.

diff --git a/common/phones/atsam.c b/common/phones/atsam.c
index f9e647c..5e36b4f 100644
--- a/common/phones/atsam.c
+++ b/common/phones/atsam.c
@@ -50,12 +50,14 @@ static gn_error Unsupported(gn_data *data, struct 
gn_statemachine *state)
 
 void at_samsung_init(char* foundmodel, char* setupmodel, struct 
gn_statemachine *state)
 {
-       if (foundmodel && !strncasecmp("SGH-L760", foundmodel, 8))
-               AT_DRVINST(state)->ucs2_as_utf8 = 1;
-       if (foundmodel && !strncasecmp("SGH-U600", foundmodel, 8))
-               AT_DRVINST(state)->extended_phonebook = 1;
-       if (foundmodel && !strncasecmp("SAMSUNG B2100", foundmodel, 13))
-               AT_DRVINST(state)->encode_number = 1;
+       if (foundmodel) {
+               if (!strncasecmp("SGH-L760", foundmodel, 8))
+                       AT_DRVINST(state)->ucs2_as_utf8 = 1;
+               if (!strncasecmp("SGH-U600", foundmodel, 8))
+                       AT_DRVINST(state)->extended_phonebook = 1;
+               if (!strncasecmp("SAMSUNG B2100", foundmodel, 13))
+                       AT_DRVINST(state)->encode_number = 1;
+       }
 
        /* phone lacks many useful commands :( */
        at_insert_send_function(GN_OP_GetBatteryLevel, Unsupported, state);

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

Summary of changes:
 common/phones/atsam.c |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
libgnokii and core programs



reply via email to

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