From 3a03fbf841bd53b697af745b921bb0d2600b96a5 Mon Sep 17 00:00:00 2001 From: Jeevaka Badrappan Date: Sat, 5 Feb 2011 06:29:11 -0800 Subject: smsutil: M16 coding style fix --- src/smsutil.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3