about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-01-26 13:21:07 -0800
committerEric Wong <normalperson@yhbt.net>2010-01-26 13:28:15 -0800
commit24d64c8f580032a116d049c91d124ceebf306113 (patch)
tree140da49f8bb5d567064a390741565c1d0b820b42
parented96fd8ecc9af2b36f527f017473669d47511e47 (diff)
downloadpcu-24d64c8f580032a116d049c91d124ceebf306113.tar.gz
inline cstr_to_off_t to avoid warning
*sigh*
-rw-r--r--compat-util.h2
1 files changed, 1 insertions, 1 deletions
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);