diff options
author | Guido Guenther <agx@sigxcpu.org> | 2007-11-21 16:55:40 +0100 |
---|---|---|
committer | Guido Guenther <agx@sigxcpu.org> | 2007-11-21 16:55:40 +0100 |
commit | 498267851d48ee60376dc96411fb8693a5e95a3c (patch) | |
tree | 9f1533b742a37b5213dc651e84aff9401df7e640 /e2fslib/tst_bitops.c | |
parent | 4bf1c0b76bed01bd30c28a089639b88d326ba2c3 (diff) |
remove unneeded e2fslib
Diffstat (limited to 'e2fslib/tst_bitops.c')
-rw-r--r-- | e2fslib/tst_bitops.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/e2fslib/tst_bitops.c b/e2fslib/tst_bitops.c deleted file mode 100644 index fb4d3ad..0000000 --- a/e2fslib/tst_bitops.c +++ /dev/null @@ -1,44 +0,0 @@ -/* - * This testing program makes sure the bitops functions work - * - * Copyright (C) 2001 by Theodore Ts'o. - * - * %Begin-Header% - * This file may be redistributed under the terms of the GNU Public - * License. - * %End-Header% - */ - -/* #define _EXT2_USE_C_VERSIONS_ */ - -#include <stdio.h> -#include <string.h> -#if HAVE_UNISTD_H -#include <unistd.h> -#endif -#include <fcntl.h> -#include <time.h> -#include <sys/stat.h> -#include <sys/types.h> -#if HAVE_ERRNO_H -#include <errno.h> -#endif - -#include "ext2_fs.h" -#include "ext2fs.h" - -unsigned char bitarray[] = { - 0x80, 0xF0, 0x40, 0x40, 0x0, 0x0, 0x0, 0x0, 0x10, 0x20, 0x00, 0x00 - }; - -main(int argc, char **argv) -{ - int i, size; - - size = sizeof(bitarray)*8; - i = ext2fs_find_first_bit_set(bitarray, size); - while (i < size) { - printf("Bit set: %d\n", i); - i = ext2fs_find_next_bit_set(bitarray, size, i+1); - } -} |