Skip to content

Commit

Permalink
Merge pull request #1457 from giuseppe/fix-compiler-warning
Browse files Browse the repository at this point in the history
utils: fix a compiler warning
  • Loading branch information
flouthoc authored Apr 29, 2024
2 parents 6df8cef + ff321e1 commit 1f5fa44
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libcrun/error.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ get_timestamp (timestamp_t *timestamp, const char *suffix)
gettimeofday (&tv, NULL);
gmtime_r (&tv.tv_sec, &now);
strftime ((char *) timestamp, 64, "%Y-%m-%dT%H:%M:%S", &now);
sprintf (((char *) timestamp) + 19, ".%06ldZ%.8s", tv.tv_usec, suffix);
sprintf (((char *) timestamp) + 19, ".%06lldZ%.8s", (long long int) tv.tv_usec, suffix);
}

static void *
Expand Down
2 changes: 1 addition & 1 deletion src/libcrun/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1811,7 +1811,7 @@ get_current_timestamp (char *out, size_t len)
gmtime_r (&tv.tv_sec, &now);
strftime (timestamp, sizeof (timestamp), "%Y-%m-%dT%H:%M:%S", &now);

snprintf (out, len, "%s.%06ldZ", timestamp, tv.tv_usec);
snprintf (out, len, "%s.%06lldZ", timestamp, (long long int) tv.tv_usec);
out[len - 1] = '\0';
}

Expand Down
2 changes: 1 addition & 1 deletion tests/podman/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ENV PATH=/usr/bin:/usr/sbin:/root/go/bin:/usr/local/bin::/usr/local/sbin

RUN dnf install -y golang python git gcc automake autoconf libcap-devel \
systemd-devel yajl-devel libseccomp-devel go-md2man \
glibc-static python3-libmount libtool make podman xz nmap-ncat procps-ng \
glibc-static python3-libmount libtool make podman xz nmap-ncat procps-ng slirp4netns \
device-mapper-devel containernetworking-plugins 'dnf-command(builddep)' && \
dnf builddep -y podman && \
chmod 755 /root && \
Expand Down

1 comment on commit 1f5fa44

@packit-as-a-service
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

podman-next COPR build failed. @containers/packit-build please check.

Please sign in to comment.