gnokii-commit
[Top][All Lists]
Advanced

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

[SCM] Additional programs and language bindings branch, master, updated.


From: Daniele Forsi
Subject: [SCM] Additional programs and language bindings branch, master, updated. 5ab51b6ffa3b4f2f6923fdf5d1b5f1c71168a216
Date: Thu, 12 Nov 2009 16:26:18 +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 "Additional programs and language bindings".

The branch, master has been updated
       via  5ab51b6ffa3b4f2f6923fdf5d1b5f1c71168a216 (commit)
      from  403dd44aa0e1b19bbae722521ce30a6acd602c66 (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/gnokii-extras.git/commit/?id=5ab51b6ffa3b4f2f6923fdf5d1b5f1c71168a216


commit 5ab51b6ffa3b4f2f6923fdf5d1b5f1c71168a216
Author: Daniele Forsi <address@hidden>
Date:   Mon Nov 2 23:39:32 2009 +0100

    Whitespace cleanup and clarify usage

diff --git a/snippets/other/network_code.c b/snippets/other/network_code.c
index f9b4fbe..b0bbdb9 100644
--- a/snippets/other/network_code.c
+++ b/snippets/other/network_code.c
@@ -18,31 +18,31 @@
 
   Copyright (c) 2006 by Daniele Forsi
 
-  Prints the MCC and the MNC corresponding to the given network (operator)
-  and country names (case insensitive).
+  Prints the MCC and the MNC corresponding to the given network name (operator)
+  and country name, both case insensitive.
   Prints "undefined" if the name is not found.
 
   gcc -Wall network_code.c -o network_code $(pkg-config --libs gnokii)
   network_code vodafone italy
-  network_code vodafone Germany
+  network_code VODAFONE GERMANY
 */
 
 #include <stdio.h>
 
 #include <gnokii.h>
 
-int main( int argc, char *argv[] ) {
+int main(int argc, char *argv[]) {
        char *country, *code;
 
-       if ( argc == 3 ) {
-               country = argv[ 2 ];
+       if (argc == 3) {
+               country = argv[2];
        } else {
-               printf( "Usage: %s network_name country_name\n", argv[0]);
+               printf("Usage: %s network_name country_name\n", argv[0]);
                return 1;
        }
        
        code = gn_network_code_find(argv[1], country);
-       printf("%s\n", code );
+       printf("%s\n", code);
 
        return 0;
 }

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

Summary of changes:
 snippets/other/network_code.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
Additional programs and language bindings




reply via email to

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