From: Jason McIntyre Subject: Re: strfile(8): update header To: tech@openbsd.org Date: Sat, 31 Aug 2024 14:42:55 +0100 On Sat, Aug 31, 2024 at 06:46:17PM +1000, Jonathan Gray wrote: > On Sat, Aug 31, 2024 at 08:42:11AM +0100, Jason McIntyre wrote: > > hi. update strfile(8) header. i preserved the indentation in the header > > as it was easier to paste in. > > > > ok? > > > > jmc > > > > Index: strfile.8 > > =================================================================== > > RCS file: /cvs/src/games/fortune/strfile/strfile.8,v > > diff -u -p -r1.17 strfile.8 > > --- strfile.8 4 Aug 2022 06:20:24 -0000 1.17 > > +++ strfile.8 31 Aug 2024 07:40:33 -0000 > > @@ -100,17 +100,17 @@ field to be set. > > .Pp > > The format of the header is: > > .Bd -literal -offset indent > > -#define VERSION 2 > > -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 */ > > -#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 */ > > -u_int8_t str_delim; /* delimiting character */ > > -u_int8_t str_pad[3]; /* padding */ > > +#define VERSION 2 > > + 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 */ > > +#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 */ > > + U_int8_t stuff[4]; /* long aligned space */ > > should be u_int8_t not U_int8_t > > ok jsg@ with that fixed > > thanks! i had somehow edited the header while viewing it, then pasted in the offending edit. oh boy! jmc