[sr-dev] git:master: lib/kcore: other inline linker fixes

Marius Zbihlei marius.zbihlei at 1and1.ro
Fri Sep 14 12:53:47 CEST 2012


Module: sip-router
Branch: master
Commit: 5b3d0d2837823a4879e493f04d4e995c3e29d37b
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=5b3d0d2837823a4879e493f04d4e995c3e29d37b

Author: Marius Zbihlei <marius.zbihlei at 1and1.ro>
Committer: Marius Zbihlei <marius.zbihlei at 1and1.ro>
Date:   Fri Sep 14 13:53:00 2012 +0300

lib/kcore: other inline linker fixes

use of 'static inline' where appliable

---

 lib/kcore/parse_sst.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/lib/kcore/parse_sst.c b/lib/kcore/parse_sst.c
index 9a5e9c1..0e5beff 100644
--- a/lib/kcore/parse_sst.c
+++ b/lib/kcore/parse_sst.c
@@ -37,17 +37,17 @@
 #include "../../mem/mem.h"
 
 
-inline int/*bool*/  is_space( char c ) { return (c == ' ' || c == '\t'); }
-inline int/*bool*/  is_num( char c ) { return (c >= '0' && c <= '9'); }
+static inline int/*bool*/  is_space( char c ) { return (c == ' ' || c == '\t'); }
+static inline int/*bool*/  is_num( char c ) { return (c >= '0' && c <= '9'); }
 
-inline unsigned  lower_byte( char b ) { return b | 0x20; }
-inline unsigned  lower_4bytes( unsigned d ) { return d | 0x20202020; }
-inline unsigned  lower_3bytes( unsigned d ) { return d |   0x202020; }
-inline unsigned  read_4bytes( char *val ) {
+static inline unsigned  lower_byte( char b ) { return b | 0x20; }
+static inline unsigned  lower_4bytes( unsigned d ) { return d | 0x20202020; }
+static inline unsigned  lower_3bytes( unsigned d ) { return d |   0x202020; }
+static inline unsigned  read_4bytes( char *val ) {
 	return (*(val + 0) + (*(val + 1) << 8)
 		+ (*(val + 2) << 16) + (*(val + 3) << 24));
 }
-inline unsigned  read_3bytes( char *val ) {
+static inline unsigned  read_3bytes( char *val ) {
 	return (*(val + 0) + (*(val + 1) << 8) + (*(val + 2) << 16));
 }
 




More information about the sr-dev mailing list