From 7a719510c853eb8d0a05fa3ea93fc92c490cc6cc Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Wed, 27 Nov 2024 14:33:23 +0100 Subject: basic/fileio: minor coding style cleanup Follow-up for bbec1c87d3bf8d14eeb1ee3b4df973a53cca2e58 --- src/basic/fileio.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/basic/fileio.h') diff --git a/src/basic/fileio.h b/src/basic/fileio.h index 08017f8270..71ec6ba921 100644 --- a/src/basic/fileio.h +++ b/src/basic/fileio.h @@ -49,15 +49,15 @@ FILE* fmemopen_unlocked(void *buf, size_t size, const char *mode); int write_string_stream_full(FILE *f, const char *line, WriteStringFileFlags flags, const struct timespec *ts); static inline int write_string_stream(FILE *f, const char *line, WriteStringFileFlags flags) { - return write_string_stream_full(f, line, flags, /* ts= */ NULL); + return write_string_stream_full(f, line, flags, NULL); } int write_string_file_full(int dir_fd, const char *fn, const char *line, WriteStringFileFlags flags, const struct timespec *ts, const char *label_fn); -static inline int write_string_file(const char *fn, const char *line, WriteStringFileFlags flags) { - return write_string_file_full(AT_FDCWD, fn, line, flags, /* ts= */ NULL, /*label_fn=*/ NULL); -} static inline int write_string_file_at(int dir_fd, const char *fn, const char *line, WriteStringFileFlags flags) { - return write_string_file_full(dir_fd, fn, line, flags, /* ts= */ NULL, /*label_fn=*/ NULL); + return write_string_file_full(dir_fd, fn, line, flags, NULL, NULL); +} +static inline int write_string_file(const char *fn, const char *line, WriteStringFileFlags flags) { + return write_string_file_at(AT_FDCWD, fn, line, flags); } int write_string_filef(const char *fn, WriteStringFileFlags flags, const char *format, ...) _printf_(3, 4); -- cgit v1.2.3