summaryrefslogtreecommitdiffstats
path: root/src/basic/fileio.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-10-25 13:44:43 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-11-10 15:52:32 +0100
commit4d5f52e77e1978a4f07fca2a1ecae45d5c5979c1 (patch)
tree52d71de661550be511ba26e8e1085c94d1969fa7 /src/basic/fileio.h
parentlibsystemd-network: add comment explaining unusual memory access (diff)
downloadsystemd-4d5f52e77e1978a4f07fca2a1ecae45d5c5979c1.tar.xz
systemd-4d5f52e77e1978a4f07fca2a1ecae45d5c5979c1.zip
basic/fileio: constify struct timespec arguments
Diffstat (limited to '')
-rw-r--r--src/basic/fileio.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/fileio.h b/src/basic/fileio.h
index b34ed5e88b..0886354cbc 100644
--- a/src/basic/fileio.h
+++ b/src/basic/fileio.h
@@ -48,11 +48,11 @@ DIR* take_fdopendir(int *dfd);
FILE* open_memstream_unlocked(char **ptr, size_t *sizeloc);
FILE* fmemopen_unlocked(void *buf, size_t size, const char *mode);
-int write_string_stream_ts(FILE *f, const char *line, WriteStringFileFlags flags, struct timespec *ts);
+int write_string_stream_ts(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_ts(f, line, flags, NULL);
}
-int write_string_file_ts(const char *fn, const char *line, WriteStringFileFlags flags, struct timespec *ts);
+int write_string_file_ts(const char *fn, const char *line, WriteStringFileFlags flags, const struct timespec *ts);
static inline int write_string_file(const char *fn, const char *line, WriteStringFileFlags flags) {
return write_string_file_ts(fn, line, flags, NULL);
}