summaryrefslogtreecommitdiffstats
path: root/src/fastd.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-08-28 00:41:44 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-08-28 16:34:10 +0200
commita681219a9275ded66dd927750edcec7859cbffbb (patch)
tree94c1c1b8d21aedb1d495dd71a72e433f3845c2b4 /src/fastd.h
parent398f78c1ffabd48914f2a4aca5dc1d43396dbbab (diff)
downloadfastd-a681219a9275ded66dd927750edcec7859cbffbb.tar
fastd-a681219a9275ded66dd927750edcec7859cbffbb.zip
Add UHASH implementation
Diffstat (limited to 'src/fastd.h')
-rw-r--r--src/fastd.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/fastd.h b/src/fastd.h
index f1825ea..acdc572 100644
--- a/src/fastd.h
+++ b/src/fastd.h
@@ -430,28 +430,3 @@ static inline bool fastd_allow_verify(void) {
return false;
#endif
}
-
-/**
- Checks if two strings are equal
-
- @param str1 The first string (may be NULL)
- @param str2 The second string (may be NULL)
-
- @return True if both strings are NULL or both strings are not NULL and equal
-*/
-static inline bool strequal(const char *str1, const char *str2) {
- if (str1 && str2)
- return (!strcmp(str1, str2));
- else
- return (str1 == str2);
-}
-
-/** Returns the maximum of two size_t values */
-static inline size_t max_size_t(size_t a, size_t b) {
- return (a > b) ? a : b;
-}
-
-/** Returns the minimum of two size_t values */
-static inline size_t min_size_t(size_t a, size_t b) {
- return (a < b) ? a : b;
-}