diff options
author | Theodore Ts'o <tytso@mit.edu> | 2011-11-05 14:51:51 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-11-05 14:55:30 -0400 |
commit | d1b75fd60c255ebc07209a5928dff497f58cd745 (patch) | |
tree | a2afc290b6388a064bdab9b6199098cc2fdad962 /lib/ext2fs | |
parent | 6b967cd6f13491dbe07380600f86ed992e833fc9 (diff) | |
download | e2fsprogs-d1b75fd60c255ebc07209a5928dff497f58cd745.tar.gz |
libext2fs: don't leak tdb_null out of the shared library namespace
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'lib/ext2fs')
-rw-r--r-- | lib/ext2fs/tdb.c | 4 | ||||
-rw-r--r-- | lib/ext2fs/tdb.h | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/ext2fs/tdb.c b/lib/ext2fs/tdb.c index 28d40c50..25ce7924 100644 --- a/lib/ext2fs/tdb.c +++ b/lib/ext2fs/tdb.c @@ -108,6 +108,8 @@ typedef int bool; #include "tdb.h" +static TDB_DATA tdb_null; + #ifndef u32 #define u32 unsigned #endif @@ -3058,8 +3060,6 @@ int tdb_printfreelist(struct tdb_context *tdb) /* file: tdb.c */ -TDB_DATA tdb_null; - /* non-blocking increment of the tdb sequence number if the tdb has been opened using the TDB_SEQNUM flag diff --git a/lib/ext2fs/tdb.h b/lib/ext2fs/tdb.h index bfcd9436..732ef0ec 100644 --- a/lib/ext2fs/tdb.h +++ b/lib/ext2fs/tdb.h @@ -206,8 +206,6 @@ void tdb_dump_all(struct tdb_context *tdb); int tdb_printfreelist(struct tdb_context *tdb); int tdb_validate_freelist(struct tdb_context *tdb, int *pnum_entries); -extern TDB_DATA tdb_null; - #ifdef __cplusplus } #endif |