]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Don't overuse bitfields when storing enums.. care must be taken for
authorhno <>
Sun, 28 Apr 2002 18:18:07 +0000 (18:18 +0000)
committerhno <>
Sun, 28 Apr 2002 18:18:07 +0000 (18:18 +0000)
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.

src/structs.h

index 56dc99ebab2e51b46f493b3a8491ecc89dde34c6..dcd790a174a942ea9aff09a27f52a0e7af14938a 100644 (file)
@@ -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;