You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
736 B
25 lines
736 B
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);
|
|
|