From 24d64c8f580032a116d049c91d124ceebf306113 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 26 Jan 2010 13:21:07 -0800 Subject: [PATCH] inline cstr_to_off_t to avoid warning *sigh* --- compat-util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compat-util.h b/compat-util.h index 00f2fee..413dab7 100644 --- a/compat-util.h +++ b/compat-util.h @@ -43,7 +43,7 @@ static inline size_t page_size(void) * account. On error, it'll return a negative value and set errno * to EINVAL */ -static off_t cstr_to_off_t(const char *nptr, char **endptr, int base) +static inline off_t cstr_to_off_t(const char *nptr, char **endptr, int base) { if (sizeof(long) == 8 || (sizeof(long) == 4 && sizeof(off_t) == 4)) return (off_t)strtol(nptr, endptr, base); -- 2.11.4.GIT