Change types used in bitfields to be `int's.
authorFlorian Forster <octo@verplant.org>
Sun, 18 Jun 2006 14:56:04 +0000 (16:56 +0200)
committerFlorian Forster <octo@verplant.org>
Sun, 18 Jun 2006 14:56:04 +0000 (16:56 +0200)
According to ANSI C99 bitfields are only defined for `signed int' and `unsigned
int'. This patch corrects the bitfield in the `msg_data_t' type from
`imap-send.c'.

imap-send.c

index 285ad29..94e39cd 100644 (file)
@@ -93,7 +93,7 @@ typedef struct {
        char *data;
        int len;
        unsigned char flags;
-       unsigned char crlf:1;
+       unsigned int crlf:1;
 } msg_data_t;
 
 #define DRV_OK          0