diff options
author | Colin Watson <cjwatson@debian.org> | 2019-10-09 22:59:48 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2019-10-09 23:39:39 +0100 |
commit | 767ee84d3465b6d244a9108de5c167a9ab866df9 (patch) | |
tree | 69b14ef6a62d7f133298a21d2ad6046f130b7801 /xmalloc.c | |
parent | ddeaf9ee7d5c6612b88f1c4a83fc6fbccb93bf60 (diff) | |
parent | efef12825b9582c1710da3b7e50135870963d4f4 (diff) |
New upstream release (8.1p1)
Diffstat (limited to 'xmalloc.c')
-rw-r--r-- | xmalloc.c | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: xmalloc.c,v 1.34 2017/05/31 09:15:42 deraadt Exp $ */ | 1 | /* $OpenBSD: xmalloc.c,v 1.35 2019/06/06 05:13:13 otto 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 |
@@ -17,7 +17,7 @@ | |||
17 | 17 | ||
18 | #include <stdarg.h> | 18 | #include <stdarg.h> |
19 | #ifdef HAVE_STDINT_H | 19 | #ifdef HAVE_STDINT_H |
20 | #include <stdint.h> | 20 | # include <stdint.h> |
21 | #endif | 21 | #endif |
22 | #include <stdio.h> | 22 | #include <stdio.h> |
23 | #include <stdlib.h> | 23 | #include <stdlib.h> |
@@ -26,15 +26,9 @@ | |||
26 | #include "xmalloc.h" | 26 | #include "xmalloc.h" |
27 | #include "log.h" | 27 | #include "log.h" |
28 | 28 | ||
29 | void | ||
30 | ssh_malloc_init(void) | ||
31 | { | ||
32 | #if defined(__OpenBSD__) | 29 | #if defined(__OpenBSD__) |
33 | extern char *malloc_options; | 30 | char *malloc_options = "S"; |
34 | |||
35 | malloc_options = "S"; | ||
36 | #endif /* __OpenBSD__ */ | 31 | #endif /* __OpenBSD__ */ |
37 | } | ||
38 | 32 | ||
39 | void * | 33 | void * |
40 | xmalloc(size_t size) | 34 | xmalloc(size_t size) |