diff options
author | Thomas Weißschuh <thomas@t-8ch.de> | 2024-04-28 23:23:47 +0200 |
---|---|---|
committer | Thomas Weißschuh <thomas@t-8ch.de> | 2024-04-28 23:28:23 +0200 |
commit | 1c33c715b926f82908ae75f19c35baf42da9e05b (patch) | |
tree | 5bd3a74c0b3306e5e7f994d19f1eb665c255688f | |
parent | a23577c64708e43dd5e35ea7256f1f366f00a38e (diff) | |
download | util-linux-1c33c715b926f82908ae75f19c35baf42da9e05b.tar.gz |
lsfd: include buffer.h in decode-file-flags.h
buffer.h does not pull in the full c.h with it side-effects,
so it can be used now.
Drop the now unnecessary extern declarations.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
-rw-r--r-- | lsfd-cmd/decode-file-flags.c | 8 | ||||
-rw-r--r-- | lsfd-cmd/decode-file-flags.h | 2 |
2 files changed, 1 insertions, 9 deletions
diff --git a/lsfd-cmd/decode-file-flags.c b/lsfd-cmd/decode-file-flags.c index 7035d79d17..3f7ecd8f71 100644 --- a/lsfd-cmd/decode-file-flags.c +++ b/lsfd-cmd/decode-file-flags.c @@ -49,16 +49,8 @@ #error "kernel's fcntl.h is not available" #endif -#include <stddef.h> /* for size_t */ - #include "decode-file-flags.h" -/* We cannot include buffer.h because buffer.h includes - * /usr/include/fcntl.h indirectly. */ -extern int ul_buffer_is_empty(struct ul_buffer *buf); -extern int ul_buffer_append_data(struct ul_buffer *buf, const char *data, size_t sz); -extern int ul_buffer_append_string(struct ul_buffer *buf, const char *str); - void lsfd_decode_file_flags(struct ul_buffer *buf, int flags) { #define SET_FLAG_FULL(L,s) \ diff --git a/lsfd-cmd/decode-file-flags.h b/lsfd-cmd/decode-file-flags.h index 88cd0d0bef..5c045fd5a4 100644 --- a/lsfd-cmd/decode-file-flags.h +++ b/lsfd-cmd/decode-file-flags.h @@ -1,7 +1,7 @@ #ifndef UTIL_LINUX_LSFD_DECODE_FILE_FLAGS_H #define UTIL_LINUX_LSFD_DECODE_FILE_FLAGS_H -struct ul_buffer; +#include "buffer.h" void lsfd_decode_file_flags(struct ul_buffer *buf, int flags); |