]> git.alsa-project.org Git - tinycompress.git/commitdiff
compress: Change running from bitfield to plain int
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Fri, 22 Feb 2013 15:59:54 +0000 (15:59 +0000)
committerVinod Koul <vinod.koul@intel.com>
Fri, 22 Feb 2013 18:08:12 +0000 (23:38 +0530)
Declaring running as a single-bit bitfield does not save any space
or give any coding advantages, but does leave potential opportunities
for the compiler to be inefficient in how it handles bitfields compared
to how it would handle a machine int.

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
compress.c

index 3cd0f85c20019b235743be50071bd5bd66cf4e8d..d09e161e177e11b91759af5da5125c55d8104e5b 100644 (file)
@@ -82,7 +82,7 @@ struct compress {
        unsigned int flags;
        char error[COMPR_ERR_MAX];
        struct compr_config *config;
-       unsigned int running:1;
+       int running;
 };
 
 static int oops(struct compress *compress, int e, const char *fmt, ...)