summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/smsutil.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/smsutil.h b/src/smsutil.h
index fc81eb11..42d2e9e1 100644
--- a/src/smsutil.h
+++ b/src/smsutil.h
@@ -423,13 +423,13 @@ struct txq_backup_entry {
static inline gboolean is_bit_set(unsigned char oct, int bit)
{
- int mask = 0x1 << bit;
+ int mask = 1 << bit;
return oct & mask ? TRUE : FALSE;
}
static inline unsigned char bit_field(unsigned char oct, int start, int num)
{
- unsigned char mask = (0x1 << num) - 1;
+ unsigned char mask = (1 << num) - 1;
return (oct >> start) & mask;
}