gentoo-ebuilds/app-arch/xar/files/xar-1.8.0.0.498-impl-decls.patch
Fabian Groffen cc91eb0f86
app-arch/xar-1.8.0.0.498: version bump
Version bump, fix implicit declarations and format warnings.

Closes: https://bugs.gentoo.org/923106
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
2024-02-18 20:41:39 +01:00

24 lines
736 B
Diff

include stdlib.h for free and strtol
silence format warning
--- a/lib/ext2.c
+++ b/lib/ext2.c
@@ -41,6 +41,7 @@
#include "asprintf.h"
#endif
#include <stdio.h>
+#include <stdlib.h>
#include <unistd.h>
#include "xar.h"
#include "arcmod.h"
--- a/lib/ea.c
+++ a/lib/ea.c
@@ -67,7 +67,7 @@
xar_prop_setvalue(XAR_EA(ret)->prop, NULL);
XAR_PROP(XAR_EA(ret)->prop)->attrs = xar_attr_new();
XAR_ATTR(XAR_PROP(XAR_EA(ret)->prop)->attrs)->key = strdup("id");
- asprintf((char **)&XAR_ATTR(XAR_PROP(XAR_EA(ret)->prop)->attrs)->value, "%lld", XAR_FILE(f)->nexteaid++);
+ asprintf((char **)&XAR_ATTR(XAR_PROP(XAR_EA(ret)->prop)->attrs)->value, PRId64, XAR_FILE(f)->nexteaid++);
xar_prop_pset(f, XAR_EA(ret)->prop, "name", name);