diff options
author | Hidetoshi Shimokawa <simokawa@FreeBSD.org> | 1999-01-18 06:59:18 +0000 |
---|---|---|
committer | Hidetoshi Shimokawa <simokawa@FreeBSD.org> | 1999-01-18 06:59:18 +0000 |
commit | 3ba3e2cc4b63fa16707f51e735e751e62dd9526e (patch) | |
tree | 2d073c94248fff7dcaa8a3b1356933e1dcd784db /contrib/global/lib/die.h | |
parent | 0823b5bf088ea8520ea23a0c424e4ecab62491d5 (diff) |
Notes
Diffstat (limited to 'contrib/global/lib/die.h')
-rw-r--r-- | contrib/global/lib/die.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/global/lib/die.h b/contrib/global/lib/die.h index 46813d415953..fc0e9e014493 100644 --- a/contrib/global/lib/die.h +++ b/contrib/global/lib/die.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 1997 Shigio Yamaguchi. All rights reserved. + * Copyright (c) 1996, 1997, 1998 Shigio Yamaguchi. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -35,7 +35,7 @@ #define _DIE_H_ #include <stdio.h> -extern char *progname; +extern const char *progname; #define die(a) fprintf(stderr, "%s: ", progname),\ fprintf(stderr, a),\ @@ -46,4 +46,8 @@ extern char *progname; fprintf(stderr, a, b),\ fputs("\n", stderr),\ exit(1) +#define die2(a,b,c) fprintf(stderr, "%s: ", progname),\ + fprintf(stderr, a, b, c),\ + fputs("\n", stderr),\ + exit(1) #endif /* ! _DIE_H_ */ |