diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-05-24 03:44:39 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-05-24 03:44:39 +0000 |
commit | a2c4c67f6bef5f075a102e449c50d7bbefa3e41b (patch) | |
tree | da00f4e450bfa103f0af9d48421a2415f2b48297 /libexec/ld.so/util.c | |
parent | 0e0146f4ca37eec8c1d0ae44892dfa75d54f4f7d (diff) |
various KNF
Diffstat (limited to 'libexec/ld.so/util.c')
-rw-r--r-- | libexec/ld.so/util.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libexec/ld.so/util.c b/libexec/ld.so/util.c index 30861a619ba..4b399fa7136 100644 --- a/libexec/ld.so/util.c +++ b/libexec/ld.so/util.c @@ -1,8 +1,8 @@ -/* $OpenBSD: util.c,v 1.2 2002/04/09 19:59:47 drahn Exp $ */ +/* $OpenBSD: util.c,v 1.3 2002/05/24 03:44:37 deraadt Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: @@ -82,11 +82,10 @@ _dl_malloc(int size) return((void *)t); } } - if ((_dl_malloc_pool == 0) || - (_dl_malloc_pool + size > _dl_malloc_base + 4096)) { + if (_dl_malloc_pool == 0 || + _dl_malloc_pool + size > _dl_malloc_base + 4096) { _dl_malloc_pool = (void *)_dl_mmap((void *)0, 4096, - PROT_READ|PROT_WRITE, - MAP_ANON|MAP_PRIVATE, -1, 0); + PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, -1, 0); if (_dl_malloc_pool == 0 || _dl_malloc_pool == MAP_FAILED ) { _dl_printf("Dynamic loader failure: malloc.\n"); _dl_exit(7); |