diff options
author | apb <apb@NetBSD.org> | 2008-10-19 07:56:42 +0000 |
---|---|---|
committer | apb <apb@NetBSD.org> | 2008-10-19 07:56:42 +0000 |
commit | e320be073a214507d35ece97ca193e695f7623dd (patch) | |
tree | b01f24f1b402157ce0e2e6e43c1124a0432772e6 /fortune/strfile/strfile.h | |
parent | 81336ce046c84fb91e0242bd6aca8a61eb0dde74 (diff) | |
download | bsdgames-darwin-e320be073a214507d35ece97ca193e695f7623dd.tar.gz bsdgames-darwin-e320be073a214507d35ece97ca193e695f7623dd.tar.zst bsdgames-darwin-e320be073a214507d35ece97ca193e695f7623dd.zip |
Use uint32_t and include <stdint.h>, instead of using u_int32_t
and including <sys/types.h>.
Diffstat (limited to 'fortune/strfile/strfile.h')
-rw-r--r-- | fortune/strfile/strfile.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fortune/strfile/strfile.h b/fortune/strfile/strfile.h index 6c55a062..1a5c4bee 100644 --- a/fortune/strfile/strfile.h +++ b/fortune/strfile/strfile.h @@ -1,4 +1,4 @@ -/* $NetBSD: strfile.h,v 1.6 2003/08/07 09:37:15 agc Exp $ */ +/* $NetBSD: strfile.h,v 1.7 2008/10/19 07:56:42 apb Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -34,21 +34,21 @@ * @(#)strfile.h 8.1 (Berkeley) 5/31/93 */ -#include <sys/types.h> +#include <stdint.h> #define STR_ENDSTRING(line,tbl) \ ((line)[0] == (tbl).str_delim && (line)[1] == '\n') typedef struct { /* information table */ #define VERSION 1 - u_int32_t str_version; /* version number */ - u_int32_t str_numstr; /* # of strings in the file */ - u_int32_t str_longlen; /* length of longest string */ - u_int32_t str_shortlen; /* length of shortest string */ + uint32_t str_version; /* version number */ + uint32_t str_numstr; /* # of strings in the file */ + uint32_t str_longlen; /* length of longest string */ + uint32_t str_shortlen; /* length of shortest string */ #define STR_RANDOM 0x1 /* randomized pointers */ #define STR_ORDERED 0x2 /* ordered pointers */ #define STR_ROTATED 0x4 /* rot-13'd text */ - u_int32_t str_flags; /* bit field for flags */ + uint32_t str_flags; /* bit field for flags */ unsigned char stuff[4]; /* long aligned space */ #define str_delim stuff[0] /* delimiting character */ } STRFILE; |