From 259fbeccda4fca5f506e09603db70843081e619f Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 29 May 2009 15:10:23 -0700 Subject: [PATCH] Run Nindent on com32/lib/onexit.c Automatically reformat com32/lib/onexit.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin --- com32/lib/onexit.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/com32/lib/onexit.c b/com32/lib/onexit.c index c984792..d409e82 100644 --- a/com32/lib/onexit.c +++ b/com32/lib/onexit.c @@ -6,34 +6,34 @@ #include #include "atexit.h" -extern __noreturn (*__exit_handler)(int); +extern __noreturn(*__exit_handler) (int); static struct atexit *__atexit_list; static __noreturn on_exit_exit(int rv) { - struct atexit *ap; + struct atexit *ap; - for ( ap = __atexit_list ; ap ; ap = ap->next ) { - ap->fctn(rv, ap->arg); /* This assumes extra args are harmless */ - } + for (ap = __atexit_list; ap; ap = ap->next) { + ap->fctn(rv, ap->arg); /* This assumes extra args are harmless */ + } - _exit(rv); + _exit(rv); } -int on_exit(void (*fctn)(int, void *), void *arg) +int on_exit(void (*fctn) (int, void *), void *arg) { - struct atexit *as = malloc(sizeof(struct atexit)); + struct atexit *as = malloc(sizeof(struct atexit)); - if ( !as ) - return -1; + if (!as) + return -1; - as->fctn = fctn; - as->arg = arg; + as->fctn = fctn; + as->arg = arg; - as->next = __atexit_list; - __atexit_list = as; + as->next = __atexit_list; + __atexit_list = as; - __exit_handler = on_exit_exit; + __exit_handler = on_exit_exit; - return 0; + return 0; } -- 2.7.4