Ignore:
Timestamp:
Oct 31, 2026, 7:16:07 PM (6 days ago)
Author:
katerina
Message:

Fixes for compiler warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_login_track.c

    r583 r592  
    168168static int get_bool(char *bitarray, unsigned int index)
    169169{
    170   int bool;
     170  int my_bool;
    171171
    172172  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
     178static void set_bool(char *bitarray, unsigned int index, int my_bool)
    179179{
    180180  bitarray += index / 8; /* skip to char */
    181   if (bool)
     181  if (my_bool)
    182182    *bitarray |= 1 << (index % 8);
    183183  else   
Note: See TracChangeset for help on using the changeset viewer.