diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-10-22 16:32:58 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-10-22 16:32:58 +0300 |
commit | c0e198bd624d3ae899194b18fec43cf065a484e9 (patch) | |
tree | 04abcba82f4b8b76f362d9e0cf7c577b5b429e36 /rpmdb | |
parent | 2c499d40dc0598fc726923215697db9aefac35f8 (diff) | |
download | rpm-c0e198bd624d3ae899194b18fec43cf065a484e9.tar.gz rpm-c0e198bd624d3ae899194b18fec43cf065a484e9.tar.bz2 rpm-c0e198bd624d3ae899194b18fec43cf065a484e9.zip |
Remove ancient test-stuff
Diffstat (limited to 'rpmdb')
-rw-r--r-- | rpmdb/tfalloc.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/rpmdb/tfalloc.c b/rpmdb/tfalloc.c deleted file mode 100644 index 122b3eddb..000000000 --- a/rpmdb/tfalloc.c +++ /dev/null @@ -1,30 +0,0 @@ -#include "system.h" -#include <rpmlib.h> -#include "rpmio_internal.h" -#include "falloc.h" -#include "debug.h" - -#define RPMDBFN "/var/lib/rpm/packages.rpm" -static const char * rpmdbfn = RPMDBFN; - -int main(int argc, char *argv[]) -{ - int lasto = 0; - FD_t fd; - - - fd = fadOpen(rpmdbfn, O_RDONLY, 0644); - if (fd == NULL) { - fprintf(stderr, "fadOpen(%s) failed\n", rpmdbfn); - exit(1); - } -fprintf(stderr, "%s: size %d(0x%08x)\n", rpmdbfn, fadGetFileSize(fd), (unsigned) fadGetFileSize(fd)); - - while ((lasto = fadNextOffset(fd, lasto)) > 0) { -fprintf(stderr, "%10d\n", lasto); - } - - (void) Fclose(fd); - - return 0; -} |