include sys/types.h, no longer need to typedef size_t
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 25 Feb 1991 06:17:23 +0000 (22:17 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 25 Feb 1991 06:17:23 +0000 (22:17 -0800)
typo in RAND_MAX define

SCCS-vsn: include/stdlib.h 5.10

usr/src/include/stdlib.h

index cf62cf2..d833c72 100644 (file)
@@ -4,17 +4,12 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)stdlib.h    5.9 (Berkeley) %G%
+ *     @(#)stdlib.h    5.10 (Berkeley) %G%
  */
 
 #ifndef _STDLIB_H_
 #define _STDLIB_H_
  */
 
 #ifndef _STDLIB_H_
 #define _STDLIB_H_
-#include <machine/types.h>
-
-#ifdef _SIZE_T_
-typedef        _SIZE_T_        size_t;
-#undef _SIZE_T_
-#endif
+#include <sys/types.h>
 
 #ifdef _WCHAR_T_
 typedef        _WCHAR_T_       wchar_t;
 
 #ifdef _WCHAR_T_
 typedef        _WCHAR_T_       wchar_t;
@@ -33,7 +28,7 @@ typedef struct {
 #define        EXIT_FAILURE    1
 #define        EXIT_SUCCESS    0
 
 #define        EXIT_FAILURE    1
 #define        EXIT_SUCCESS    0
 
-#define        RAND_MAX        0x7ffffffff
+#define        RAND_MAX        0x7fffffff
 
 #define        MB_CUR_MAX      1       /* XXX */
 
 
 #define        MB_CUR_MAX      1       /* XXX */