tools/nolibc: fix return type of getpagesize()
[linux-block.git] / tools / include / nolibc / sys.h
index 56f63eb48a1b6f07a533a617c5a1014c4878c106..c151533ba8e9128d03c7796e9574ce8000a288b1 100644 (file)
@@ -460,11 +460,11 @@ pid_t gettid(void)
 static unsigned long getauxval(unsigned long key);
 
 /*
- * long getpagesize(void);
+ * int getpagesize(void);
  */
 
 static __attribute__((unused))
-long getpagesize(void)
+int getpagesize(void)
 {
        return __sysret(getauxval(AT_PAGESZ) ?: -ENOENT);
 }
@@ -738,7 +738,6 @@ static __attribute__((unused))
 int open(const char *path, int flags, ...)
 {
        mode_t mode = 0;
-       int ret;
 
        if (flags & O_CREAT) {
                va_list args;