diff options
Diffstat (limited to 'usr/src/cmd/format/param.h')
-rw-r--r-- | usr/src/cmd/format/param.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/usr/src/cmd/format/param.h b/usr/src/cmd/format/param.h index e92005e2e5..553ee1ebb1 100644 --- a/usr/src/cmd/format/param.h +++ b/usr/src/cmd/format/param.h @@ -27,8 +27,6 @@ #ifndef _PARAM_H #define _PARAM_H -#pragma ident "%Z%%M% %I% %E% SMI" - #ifdef __cplusplus extern "C" { #endif @@ -37,6 +35,14 @@ extern "C" { #define UINT16_MAX 0xffffU #endif +#ifndef UINT32_MAX +#define UINT32_MAX 0xffffffffU +#endif + +#ifndef INT32_MAX +#define INT32_MAX 0x7fffffff +#endif + /* * This file contains declarations of miscellaneous parameters. */ @@ -56,7 +62,7 @@ extern "C" { #define AVG_BPS 600 /* default bytes/sector */ #define MAX_BPS 1000 /* max legal bytes/sector */ -#define INFINITY 0x7fffffff /* a big number */ +#define INFINITY 0xffffffffU /* a big number */ #define MAXBLKS(heads, spt) UINT16_MAX * heads * spt, heads, spt #ifdef __cplusplus |