Changeset 592 for trunk/src/sh_login_track.c
- Timestamp:
- Oct 31, 2026, 7:16:07 PM (6 days ago)
- File:
-
- 1 edited
-
trunk/src/sh_login_track.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_login_track.c
r583 r592 168 168 static int get_bool(char *bitarray, unsigned int index) 169 169 { 170 int bool;170 int my_bool; 171 171 172 172 bitarray += index / 8; /* skip to char */ 173 bool = (*bitarray & (1 << (index % 8)));174 175 return bool;176 } 177 178 static void set_bool(char *bitarray, unsigned int index, int bool)173 my_bool = (*bitarray & (1 << (index % 8))); 174 175 return my_bool; 176 } 177 178 static void set_bool(char *bitarray, unsigned int index, int my_bool) 179 179 { 180 180 bitarray += index / 8; /* skip to char */ 181 if ( bool)181 if (my_bool) 182 182 *bitarray |= 1 << (index % 8); 183 183 else
Note:
See TracChangeset
for help on using the changeset viewer.