From: hno <> Date: Sun, 28 Apr 2002 18:18:07 +0000 (+0000) Subject: Don't overuse bitfields when storing enums.. care must be taken for X-Git-Tag: SQUID_3_0_PRE1~1030 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2f35b0c3f9337faaea0c4294a66449b0397dd25;p=thirdparty%2Fsquid.git Don't overuse bitfields when storing enums.. care must be taken for signed/unsigned etc. For fields where memoryusage isn't a significant impact it is better to not care and let the compiler assign field size. --- diff --git a/src/structs.h b/src/structs.h index 56dc99ebab..dcd790a174 100644 --- a/src/structs.h +++ b/src/structs.h @@ -1,6 +1,6 @@ /* - * $Id: structs.h,v 1.417 2002/04/21 14:07:05 hno Exp $ + * $Id: structs.h,v 1.418 2002/04/28 12:18:07 hno Exp $ * * * SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -2068,7 +2068,7 @@ struct _helper_stateful_server { unsigned int busy:1; unsigned int closing:1; unsigned int shutdown:1; - stateful_helper_reserve_t reserved:2; + stateful_helper_reserve_t reserved; } flags; struct { int uses;