diff options
author | Emil Velikov <emil.velikov@collabora.com> | 2023-02-21 13:19:28 +0000 |
---|---|---|
committer | Lucas De Marchi <lucas.de.marchi@gmail.com> | 2023-02-21 16:35:42 -0800 |
commit | 06e6f167c211106212290aa7980880f972d71ba2 (patch) | |
tree | 65dcfc048f766861624f47911fdf368c9c429fcf /shared/util.c | |
parent | df9d07a1492d7185413985add42ab38650ec2378 (diff) | |
download | kmod-06e6f167c211106212290aa7980880f972d71ba2.tar.gz |
shared: annotate local API as static
None of the API is used outside of the compilation unit.
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Diffstat (limited to 'shared/util.c')
-rw-r--r-- | shared/util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shared/util.c b/shared/util.c index 4b547ff..e2bab83 100644 --- a/shared/util.c +++ b/shared/util.c @@ -354,7 +354,7 @@ char *freadline_wrapped(FILE *fp, unsigned int *linenum) /* path handling functions */ /* ************************************************************************ */ -bool path_is_absolute(const char *p) +static bool path_is_absolute(const char *p) { assert(p != NULL); @@ -460,13 +460,13 @@ int mkdir_parents(const char *path, mode_t mode) return mkdir_p(path, end - path, mode); } -unsigned long long ts_usec(const struct timespec *ts) +static unsigned long long ts_usec(const struct timespec *ts) { return (unsigned long long) ts->tv_sec * USEC_PER_SEC + (unsigned long long) ts->tv_nsec / NSEC_PER_USEC; } -unsigned long long ts_msec(const struct timespec *ts) +static unsigned long long ts_msec(const struct timespec *ts) { return (unsigned long long) ts->tv_sec * MSEC_PER_SEC + (unsigned long long) ts->tv_nsec / NSEC_PER_MSEC; |