fix format error in error_message

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9771 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2001-03-26 04:09:55 +00:00
parent 4db631551b
commit 31cbd16e0e

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997 - 2000 Kungliga Tekniska H<>gskolan * Copyright (c) 1997 - 2001 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden). * (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved. * All rights reserved.
* *
@@ -232,7 +232,8 @@ new_type (Typetype tt)
{ {
Type *t = malloc(sizeof(*t)); Type *t = malloc(sizeof(*t));
if (t == NULL) { if (t == NULL) {
error_message ("out of memory in malloc(%u)", sizeof(*t)); error_message ("out of memory in malloc(%lu)",
(unsigned long)sizeof(*t));
exit (1); exit (1);
} }
t->type = tt; t->type = tt;