mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
Give every printf-like function restrict qualifiers
The format value has to be a string literal, every time. Otherwise, you are not using these functions correctly. To reinforce this fact, I putrestrict over every non-contrib example of this I could find.
This commit is contained in:
@@ -316,7 +316,7 @@ sudo_dso_public mode_t sudo_strtomode_v2(const char *cp, const char **errstr);
|
||||
#define sudo_strtomode(_a, _b) sudo_strtomode_v2((_a), (_b))
|
||||
|
||||
/* sudo_printf.c */
|
||||
extern int (*sudo_printf)(int msg_type, const char *fmt, ...);
|
||||
extern int (*sudo_printf)(int msg_type, const char * restrict fmt, ...);
|
||||
|
||||
/* term.c */
|
||||
sudo_dso_public bool sudo_term_cbreak_v1(int fd);
|
||||
|
Reference in New Issue
Block a user