diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-13 04:30:18 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-13 04:30:18 +0000 |
commit | 699034d85536ab2090282d2fa7bd8cc4825ce693 (patch) | |
tree | e0d85a190b3d434f7270a4e900441c636e46b387 /tools | |
parent | Adding upstream version 32+20240327. (diff) | |
download | kmod-699034d85536ab2090282d2fa7bd8cc4825ce693.tar.xz kmod-699034d85536ab2090282d2fa7bd8cc4825ce693.zip |
Adding upstream version 32+20240611.upstream/32+20240611upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/depmod.c | 4 | ||||
-rw-r--r-- | tools/kmod.c | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tools/depmod.c b/tools/depmod.c index 06618fa..8e9e2d1 100644 --- a/tools/depmod.c +++ b/tools/depmod.c @@ -2638,8 +2638,8 @@ static int depmod_output(struct depmod *depmod, FILE *out) int mode = 0644; int fd; - snprintf(tmp, sizeof(tmp), "%s.%i.%li.%li", itr->name, getpid(), - tv.tv_usec, tv.tv_sec); + snprintf(tmp, sizeof(tmp), "%s.%i.%lli.%lli", itr->name, getpid(), + (long long)tv.tv_usec, (long long)tv.tv_sec); fd = openat(dfd, tmp, flags, mode); if (fd < 0) { ERR("openat(%s, %s, %o, %o): %m\n", diff --git a/tools/kmod.c b/tools/kmod.c index 1015575..e1a73be 100644 --- a/tools/kmod.c +++ b/tools/kmod.c @@ -24,6 +24,7 @@ #include <string.h> #include <shared/util.h> +#include <shared/missing.h> #include <libkmod/libkmod.h> |