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


From: Pawel Kot
Subject: [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-411-g6a32666
Date: Sat, 25 Aug 2012 21:05:23 +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  6a326662601a16bd586d5b87cc9394220dae4c4b (commit)
      from  406b57361a0e772c30a0bf367ed4599da0849996 (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=6a326662601a16bd586d5b87cc9394220dae4c4b


commit 6a326662601a16bd586d5b87cc9394220dae4c4b
Author: Pawel Kot <address@hidden>
Date:   Sat Aug 25 23:03:41 2012 +0200

    Rough cleanup of inline usage.
    
    Make inline to be static inline where relevant (to be compatible with C99).
    Remove inline where not necessary.
    Convert inline static to static inline.

diff --git a/ChangeLog b/ChangeLog
index 9aa6196..1ecb393 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -19,6 +19,8 @@
       to misc.c only; use model=series40; many commands don't work,
       see the Series 30 section in Docs/README-6510
                                                    (Gustavo Conrad)
+    o remove inline from the local_atoi() function definition and
+      add static instead                                (Paweł Kot)
  * at driver updates
     o in the default case autodetect if PDU SMS starts with SMSC
                                                     (Daniele Forsi)
@@ -55,6 +57,8 @@
  * xgnokii updates
     o fix bug that caused to forget subentries after the first one
       when editing the phonebook                    (Daniele Forsi)
+    o change relevant inline defintion to static inline to follow
+      C99 standard                                      (Paweł Kot)
  * nk7110 driver updates
     o return more specific error codes for GN_OP_ReadPhonebook and
       for GN_OP_GetSMSCenter failures               (Daniele Forsi)
diff --git a/common/gsm-filetypes.c b/common/gsm-filetypes.c
index 053a971..08efa36 100644
--- a/common/gsm-filetypes.c
+++ b/common/gsm-filetypes.c
@@ -1391,7 +1391,7 @@ static int get_next_token(char *src, int delim)
 #define GET_NEXT_TOKEN()       o = get_next_token(line + offset, ';')
 #define STORE_TOKEN(a)         strip_slashes(a, line + offset, sizeof(a) - 1, 
o - 1)
 
-inline int local_atoi(char *str, int len)
+static int local_atoi(char *str, int len)
 {
        int retval;
        char *aux = strndup(str, len);
diff --git a/smsd/lowlevel.c b/smsd/lowlevel.c
index d50f131..d421932 100644
--- a/smsd/lowlevel.c
+++ b/smsd/lowlevel.c
@@ -41,7 +41,7 @@ inline void InsertEvent (PhoneEvent *event)
 }
 
 
-inline static PhoneEvent *RemoveEvent (void)
+static inline PhoneEvent *RemoveEvent (void)
 {
   GSList *list;
   PhoneEvent *event = NULL;
diff --git a/xgnokii/xgnokii.c b/xgnokii/xgnokii.c
index 01a5f25..0948828 100644
--- a/xgnokii/xgnokii.c
+++ b/xgnokii/xgnokii.c
@@ -782,7 +782,7 @@ inline void GUI_ShowAbout(void)
 }
 
 
-inline void GUI_HideAbout(void)
+static inline void GUI_HideAbout(void)
 {
        gtk_widget_hide(AboutDialog);
 }
diff --git a/xgnokii/xgnokii_logos.c b/xgnokii/xgnokii_logos.c
index 76e690c..c0e94c6 100644
--- a/xgnokii/xgnokii_logos.c
+++ b/xgnokii/xgnokii_logos.c
@@ -1288,7 +1288,7 @@ gint LogoTypeEvent(GtkWidget * widget)
        return 0;
 }
 
-inline void CloseLogosWindow(void)
+static inline void CloseLogosWindow(void)
 {
        gtk_widget_hide(GUI_LogosWindow);
 }

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

Summary of changes:
 ChangeLog               |    4 ++++
 common/gsm-filetypes.c  |    2 +-
 smsd/lowlevel.c         |    2 +-
 xgnokii/xgnokii.c       |    2 +-
 xgnokii/xgnokii_logos.c |    2 +-
 5 files changed, 8 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
libgnokii and core programs



reply via email to

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