From: Richard Fitzgerald Date: Fri, 22 Feb 2013 15:59:54 +0000 (+0000) Subject: compress: Change running from bitfield to plain int X-Git-Tag: v0.1.0~11 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=14af3b09722f60f3ab3c52d21347c5907bec9ade;p=tinycompress.git compress: Change running from bitfield to plain int 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 --- diff --git a/compress.c b/compress.c index 3cd0f85..d09e161 100644 --- a/compress.c +++ b/compress.c @@ -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, ...)