Simply avoid warnings of modern gcc
[enscript.git] / compat / xalloc.c
index 124ed3a..4194855 100644 (file)
@@ -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
- * the Free Software Foundation, 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
  */
 
 #include <stdio.h>
@@ -67,7 +67,7 @@ xmalloc (size)
   ptr = malloc (size);
   if (ptr == NULL)
     {
-      fprintf (stderr, _("xmalloc(): couldn't allocate %d bytes\n"), size);
+      fprintf (stderr, _("xmalloc(): couldn't allocate %zd bytes\n"), size);
       exit (1);
     }
 
@@ -85,7 +85,7 @@ xcalloc (num, size)
   ptr = calloc (num, size);
   if (ptr == NULL)
     {
-      fprintf (stderr, _("xcalloc(): couldn't allocate %d bytes\n"), size);
+      fprintf (stderr, _("xcalloc(): couldn't allocate %zd bytes\n"), size);
       exit (1);
     }
 
@@ -106,7 +106,7 @@ xrealloc (ptr, size)
   nptr = realloc (ptr, size);
   if (nptr == NULL)
     {
-      fprintf (stderr, _("xrealloc(): couldn't reallocate %d bytes\n"), size);
+      fprintf (stderr, _("xrealloc(): couldn't reallocate %zd bytes\n"), size);
       exit (1);
     }