git@sv
/
enscript.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simply avoid warnings of modern gcc
[enscript.git]
/
compat
/
xalloc.c
diff --git
a/compat/xalloc.c
b/compat/xalloc.c
index c1ff51f5d48b87c332fb2997420b5095023e43ee..419485564fd2e2705031de3683ae38fc8a0ed165 100644
(file)
--- a/
compat/xalloc.c
+++ b/
compat/xalloc.c
@@
-67,7
+67,7
@@
xmalloc (size)
ptr = malloc (size);
if (ptr == NULL)
{
ptr = malloc (size);
if (ptr == NULL)
{
- fprintf (stderr, _("xmalloc(): couldn't allocate %d bytes\n"), size);
+ fprintf (stderr, _("xmalloc(): couldn't allocate %
z
d bytes\n"), size);
exit (1);
}
exit (1);
}
@@
-85,7
+85,7
@@
xcalloc (num, size)
ptr = calloc (num, size);
if (ptr == NULL)
{
ptr = calloc (num, size);
if (ptr == NULL)
{
- fprintf (stderr, _("xcalloc(): couldn't allocate %d bytes\n"), size);
+ fprintf (stderr, _("xcalloc(): couldn't allocate %
z
d bytes\n"), size);
exit (1);
}
exit (1);
}
@@
-106,7
+106,7
@@
xrealloc (ptr, size)
nptr = realloc (ptr, size);
if (nptr == NULL)
{
nptr = realloc (ptr, size);
if (nptr == NULL)
{
- fprintf (stderr, _("xrealloc(): couldn't reallocate %d bytes\n"), size);
+ fprintf (stderr, _("xrealloc(): couldn't reallocate %
z
d bytes\n"), size);
exit (1);
}
exit (1);
}