#
360675 |
|
05-May-2020 |
dim |
Fix misleading indentation warning:
usr.sbin/lmcconfig/lmcconfig.c:941:39: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation] return 64.0; ^ usr.sbin/lmcconfig/lmcconfig.c:940:3: note: previous statement is here if ((vga >= 0x3A) && (vga < 0x3F)) return 50.0 + 2.80 * (vga - 0x3A); ^
Direct commit to stable/11, since lmcconfig has been removed from FreeBSD 12 and later.
|
#
239988 |
|
01-Sep-2012 |
ed |
Rework time handling.
After I made the previous commit, I noticed the code does some things it shouldn't. It casts a struct timeval to a time_t, assuming tv_sec is the first member. Also, we are not interested in microseconds, so it is better to just call time(NULL).
MFC after: 1 month
|