Assume "long long" availability
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 11 Nov 2013 15:52:37 +0000 (15:52 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 11 Nov 2013 15:58:20 +0000 (15:58 +0000)
Most of the code already uses long long types unconditionally.

* configure.ac: Remove the check for long long.
* file.c (printstat64): Remove HAVE_LONG_LONG checks, use %llu format
string unconditionally.

configure.ac
file.c

index 5b4c38e43a184f89784d67be3d4b025848a0c5be..62e20ce241973780c6153c466c855aab2126e7ba 100644 (file)
@@ -193,7 +193,6 @@ AC_CHECK_MEMBERS([struct sockaddr_in6.sin6_scope_id],,,
 [#include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>])
-AC_CHECK_TYPES([long long])
 AC_LITTLE_ENDIAN_LONG_LONG
 AC_OFF_T_IS_LONG_LONG
 AC_CHECK_TYPES([struct opthdr],,, [#include <sys/socket.h>])
diff --git a/file.c b/file.c
index 016fc94daf9a86c0772c2801c15004c2c4d17c1c..6feb94713a3a0aba7c51bd624aa108ab5d7a0a01 100644 (file)
--- a/file.c
+++ b/file.c
@@ -1104,18 +1104,10 @@ printstat64(struct tcb *tcp, long addr)
        }
 
        if (!abbrev(tcp)) {
-#ifdef HAVE_LONG_LONG
                tprintf("{st_dev=makedev(%lu, %lu), st_ino=%llu, st_mode=%s, ",
-#else
-               tprintf("{st_dev=makedev(%lu, %lu), st_ino=%lu, st_mode=%s, ",
-#endif
                        (unsigned long) major(statbuf.st_dev),
                        (unsigned long) minor(statbuf.st_dev),
-#ifdef HAVE_LONG_LONG
                        (unsigned long long) statbuf.st_ino,
-#else
-                       (unsigned long) statbuf.st_ino,
-#endif
                        sprintmode(statbuf.st_mode));
                tprintf("st_nlink=%lu, st_uid=%lu, st_gid=%lu, ",
                        (unsigned long) statbuf.st_nlink,
@@ -1144,11 +1136,7 @@ printstat64(struct tcb *tcp, long addr)
 #endif /* !HAVE_STRUCT_STAT_ST_RDEV */
                break;
        default:
-#ifdef HAVE_LONG_LONG
                tprintf("st_size=%llu, ", (unsigned long long) statbuf.st_size);
-#else
-               tprintf("st_size=%lu, ", (unsigned long) statbuf.st_size);
-#endif
                break;
        }
        if (!abbrev(tcp)) {