diff options
author | Tom Yu <tlyu@mit.edu> | 2009-10-31 00:48:38 +0000 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2009-10-31 00:48:38 +0000 |
commit | 02d6bcbc98a214e7aeaaa9f45f0db8784a7b743b (patch) | |
tree | 61b9147863cd8be3eff63903dc36cae168254bd5 /src/clients/ksu/xmalloc.c | |
parent | 162ab371748cba0cc6f172419bd6e71fa04bb878 (diff) | |
download | krb5-02d6bcbc98a214e7aeaaa9f45f0db8784a7b743b.tar.gz krb5-02d6bcbc98a214e7aeaaa9f45f0db8784a7b743b.tar.xz krb5-02d6bcbc98a214e7aeaaa9f45f0db8784a7b743b.zip |
make mark-cstyle
make reindent
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23100 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/clients/ksu/xmalloc.c')
-rw-r--r-- | src/clients/ksu/xmalloc.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/clients/ksu/xmalloc.c b/src/clients/ksu/xmalloc.c index 44bdca16d0..f88c0a6520 100644 --- a/src/clients/ksu/xmalloc.c +++ b/src/clients/ksu/xmalloc.c @@ -1,3 +1,4 @@ +/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * clients/ksu/xmalloc.c * @@ -8,7 +9,7 @@ * require a specific license from the United States Government. * It is the responsibility of any person or organization contemplating * export to obtain such a license before exporting. - * + * * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and * distribute this software and its documentation for any purpose and * without fee is hereby granted, provided that the above copyright @@ -22,7 +23,7 @@ * M.I.T. makes no representations about the suitability of * this software for any purpose. It is provided "as is" without express * or implied warranty. - * + * * * Perform simple allocation/copy operations, exiting on failure. */ @@ -35,8 +36,8 @@ void *xmalloc (size_t sz) { void *ret = malloc (sz); if (ret == 0 && sz != 0) { - perror (prog_name); - exit (1); + perror (prog_name); + exit (1); } return ret; } @@ -45,8 +46,8 @@ void *xrealloc (void *old, size_t newsz) { void *ret = realloc (old, newsz); if (ret == 0 && newsz != 0) { - perror (prog_name); - exit (1); + perror (prog_name); + exit (1); } return ret; } @@ -55,8 +56,8 @@ void *xcalloc (size_t nelts, size_t eltsz) { void *ret = calloc (nelts, eltsz); if (ret == 0 && nelts != 0 && eltsz != 0) { - perror (prog_name); - exit (1); + perror (prog_name); + exit (1); } return ret; } @@ -76,8 +77,8 @@ char *xasprintf (const char *format, ...) va_start (args, format); if (vasprintf(&out, format, args) < 0) { - perror (prog_name); - exit (1); + perror (prog_name); + exit (1); } va_end(args); return out; |