]> sourceware.org Git - glibc.git/commitdiff
Define __have_no_fcntl64 static.
authorUlrich Drepper <drepper@redhat.com>
Sat, 12 Aug 2000 08:46:30 +0000 (08:46 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 12 Aug 2000 08:46:30 +0000 (08:46 +0000)
sysdeps/unix/sysv/linux/i386/fcntl.c

index 05708bf42db586f3720012cb323b1982f332b958..dbd47f5847cc9c2edcea9ac601bb67b69f5e49cf 100644 (file)
 #include "../kernel-features.h"
 
 
-# if __ASSUME_FCNTL64 == 0
+#if __ASSUME_FCNTL64 == 0
 /* This variable is shared with all files that check for fcntl64.  */
-int __have_no_fcntl64;
-# endif
+static int __have_no_fcntl64;
 #endif
 
 int
@@ -65,14 +64,14 @@ __libc_fcntl (int fd, int cmd, ...)
 
        fl.l_start = (off_t)fl64->l_start;
        /* Check if we can represent the values with the smaller type.  */
-       if ((off64_t)fl.l_start != fl64->l_start)
+       if ((off64_t) fl.l_start != fl64->l_start)
          {
            __set_errno (EOVERFLOW);
            return -1;
          }
-       fl.l_len = (off_t)fl64->l_len;
+       fl.l_len = (off_t) fl64->l_len;
        /* Check if we can represent the values with the smaller type.  */
-       if ((off64_t)fl.l_len != fl64->l_len)
+       if ((off64_t) fl.l_len != fl64->l_len)
          {
            __set_errno (EOVERFLOW);
            return -1;
@@ -99,16 +98,17 @@ __libc_fcntl (int fd, int cmd, ...)
       {
        struct flock fl;
        struct flock64 *fl64 = arg;
-       fl.l_start = (off_t)fl64->l_start;
+
+       fl.l_start = (off_t) fl64->l_start;
        /* Check if we can represent the values with the smaller type.  */
-       if ((off64_t)fl.l_start != fl64->l_start)
+       if ((off64_t) fl.l_start != fl64->l_start)
          {
            __set_errno (EOVERFLOW);
            return -1;
          }
        fl.l_len = (off_t)fl64->l_len;
        /* Check if we can represent the values with the smaller type.  */
-       if ((off64_t)fl.l_len != fl64->l_len)
+       if ((off64_t) fl.l_len != fl64->l_len)
          {
            __set_errno (EOVERFLOW);
            return -1;
This page took 0.298054 seconds and 5 git commands to generate.