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
124ed3a
..
4194855
100644
(file)
--- a/
compat/xalloc.c
+++ b/
compat/xalloc.c
@@
-20,8
+20,8
@@
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file COPYING. If not, write to
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file COPYING. If not, write to
- * the Free Software Foundation, 5
9 Temple Place - Suite 330
,
- * Boston, MA 0211
1-1307
, USA.
+ * the Free Software Foundation, 5
1 Franklin Street, Fifth Floor
,
+ * Boston, MA 0211
0-1301
, USA.
*/
#include <stdio.h>
*/
#include <stdio.h>
@@
-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);
}