diff options
Diffstat (limited to 'xmalloc.c')
-rw-r--r-- | xmalloc.c | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: xmalloc.c,v 1.27 2006/08/03 03:34:42 deraadt Exp $ */ | 1 | /* $OpenBSD: xmalloc.c,v 1.28 2013/05/17 00:13:14 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -73,14 +73,6 @@ xrealloc(void *ptr, size_t nmemb, size_t size) | |||
73 | return new_ptr; | 73 | return new_ptr; |
74 | } | 74 | } |
75 | 75 | ||
76 | void | ||
77 | xfree(void *ptr) | ||
78 | { | ||
79 | if (ptr == NULL) | ||
80 | fatal("xfree: NULL pointer given as argument"); | ||
81 | free(ptr); | ||
82 | } | ||
83 | |||
84 | char * | 76 | char * |
85 | xstrdup(const char *str) | 77 | xstrdup(const char *str) |
86 | { | 78 | { |