Mark fmt parameter const for wpa_printf/msg
This commit is contained in:
parent
abd7a4e353
commit
0de4da91c1
2 changed files with 7 additions and 6 deletions
|
@ -95,7 +95,7 @@ static int syslog_priority(int level)
|
|||
*
|
||||
* Note: New line '\n' is added to the end of the text when printing to stdout.
|
||||
*/
|
||||
void wpa_printf(int level, char *fmt, ...)
|
||||
void wpa_printf(int level, const char *fmt, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
|
@ -314,7 +314,7 @@ void wpa_msg_register_cb(wpa_msg_cb_func func)
|
|||
}
|
||||
|
||||
|
||||
void wpa_msg(void *ctx, int level, char *fmt, ...)
|
||||
void wpa_msg(void *ctx, int level, const char *fmt, ...)
|
||||
{
|
||||
va_list ap;
|
||||
char *buf;
|
||||
|
@ -337,7 +337,7 @@ void wpa_msg(void *ctx, int level, char *fmt, ...)
|
|||
}
|
||||
|
||||
|
||||
void wpa_msg_ctrl(void *ctx, int level, char *fmt, ...)
|
||||
void wpa_msg_ctrl(void *ctx, int level, const char *fmt, ...)
|
||||
{
|
||||
va_list ap;
|
||||
char *buf;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue