X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=src%2Fcommon.c;h=cc252075dfca0fd4f67b8aa561a4b11cea86e005;hb=e05a6f05e7fce66ac7560e066d995c456073d29f;hp=6baa69dd064d0335ecbb0e3fd037a35ccfd6c4e6;hpb=23c77cc092dbbb1e12c47c2b0021d4476b543702;p=rrq%2Fmaintain_lilo.git diff --git a/src/common.c b/src/common.c index 6baa69d..cc25207 100644 --- a/src/common.c +++ b/src/common.c @@ -1,14 +1,13 @@ -/* common.c - Common data structures and functions. */ -/* -Copyright 1992-1998 Werner Almesberger. -Copyright 1999-2005 John Coffman. -All rights reserved. - -Licensed under the terms contained in the file 'COPYING' in the -source directory. - -*/ - +/* common.c - Common data structures and functions + * + * Copyright 1992-1998 Werner Almesberger + * Copyright 1999-2005 John Coffman + * Copyright 2009-2011 Joachim Wiedorn + * All rights reserved. + * + * Licensed under the terms contained in the file 'COPYING' + * in the source directory. + */ #define _GNU_SOURCE #include @@ -39,7 +38,7 @@ unsigned int prt_map[PRTMAP_SIZE+1]; int curr_prt_map; #endif /* !__MSDOS__ */ -/*volatile*/ void pdie(char *msg) +/*volatile*/ void pdie(const char *msg) { fflush(stdout); #if !__MSDOS__ @@ -51,7 +50,7 @@ int curr_prt_map; } -/*volatile*/ void die(char *fmt,...) +/*volatile*/ void __attribute__ ((format (printf, 1, 2))) die(const char *fmt,...) { va_list ap;