mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 01:32:08 +00:00
- add note about removing superfluous fmt specifiers
This commit is contained in:
parent
395010b1f0
commit
863073da08
9
TODO
9
TODO
@ -259,12 +259,17 @@ Minor stuff:
|
|||||||
if(!ioctl (fd, WDIOC_GETTIMEOUT, &tmo)) timer_duration = 1 + (tmo / 2);
|
if(!ioctl (fd, WDIOC_GETTIMEOUT, &tmo)) timer_duration = 1 + (tmo / 2);
|
||||||
Unfortunately, that needs linux/watchdog.h and that contains unfiltered
|
Unfortunately, that needs linux/watchdog.h and that contains unfiltered
|
||||||
kernel types on some distros, which breaks the build.
|
kernel types on some distros, which breaks the build.
|
||||||
|
---
|
||||||
use bb_error_msg where appropriate: See
|
use bb_error_msg where appropriate: See
|
||||||
egrep "(printf.*\([[:space:]]*(stderr|2)|[^_]write.*\([[:space:]]*(stderr|2))"
|
egrep "(printf.*\([[:space:]]*(stderr|2)|[^_]write.*\([[:space:]]*(stderr|2))"
|
||||||
|
---
|
||||||
use bb_perror_msg where appropriate: See
|
use bb_perror_msg where appropriate: See
|
||||||
egrep "[^_]perror"
|
egrep "[^_]perror"
|
||||||
|
---
|
||||||
|
Remove superfluous fmt occurances: e.g.
|
||||||
|
fprintf(stderr, "%s: %s not found\n", "unalias", *argptr);
|
||||||
|
-> fprintf(stderr, "unalias: %s not found\n", *argptr);
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
Code cleanup:
|
Code cleanup:
|
||||||
|
Loading…
Reference in New Issue
Block a user