]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
lib/resolve: inlining not forced
authorMarek Vavruša <marek.vavrusa@nic.cz>
Sat, 28 Nov 2015 22:50:43 +0000 (23:50 +0100)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Sat, 28 Nov 2015 22:50:43 +0000 (23:50 +0100)
lib/defines.h
lib/resolve.c

index f3dc873a28131a620ecc15b189d2b00edd24fd46..c70c279f980c1657884cb8d0a05ce40162e8d7ae 100644 (file)
 #define KR_CONST __attribute__((__const__))
 #define KR_PURE __attribute__((__pure__))
 #define KR_NORETURN __attribute__((__noreturn__))
-#define KR_INLINE __attribute__((always_inline))
 #else
 #define KR_EXPORT
 #define KR_CONST
 #define KR_PURE
 #define KR_NORETURN
-#define KR_INLINE
 #endif
 
 /*
index 30261a2e5ed885f60402559f9062d3c8d85bff34..a730a214083634cf417dfb9881e3415defbef625 100644 (file)
@@ -87,7 +87,7 @@ static inline size_t layer_id(struct kr_request *req, const struct knot_layer_ap
 }
 
 /* @internal We don't need to deal with locale here */
-KR_CONST KR_INLINE static bool isletter(unsigned chr)
+KR_CONST static inline bool isletter(unsigned chr)
 { return (chr | 0x20 /* tolower */) - 'a' <= 'z' - 'a'; }
 
 /* Randomize QNAME letter case.