Commit 2125fa1b 2125fa1b4899a1ae59d4d24ddd2a569557cb7f22 by Sergey Poznyakoff

Minor fixes.

* include/mailutils/cfg.h (mu_cfg_perror): Mark as printflike.
(mu_cfg_format_error): Likewise.
* libmu_argp/radius.c (mu_radius_argp_option): Fix typo in the
docstring.
* mail/mail.h [!WITH_READLINE] (mailvar_set_compl): New define.
1 parent 5e2f8ad6
...@@ -92,8 +92,10 @@ extern mu_cfg_locus_t mu_cfg_locus; ...@@ -92,8 +92,10 @@ extern mu_cfg_locus_t mu_cfg_locus;
92 92
93 mu_opool_t mu_cfg_lexer_pool (void); 93 mu_opool_t mu_cfg_lexer_pool (void);
94 94
95 void mu_cfg_perror (const mu_cfg_locus_t *, const char *, ...); 95 void mu_cfg_perror (const mu_cfg_locus_t *, const char *, ...)
96 void mu_cfg_format_error (mu_debug_t debug, size_t, const char *fmt, ...); 96 MU_PRINTFLIKE(2,3);
97 void mu_cfg_format_error (mu_debug_t debug, size_t, const char *fmt, ...)
98 MU_PRINTFLIKE(3,4);
97 99
98 #define MU_CFG_ITER_OK 0 100 #define MU_CFG_ITER_OK 0
99 #define MU_CFG_ITER_SKIP 1 101 #define MU_CFG_ITER_SKIP 1
......
...@@ -32,7 +32,7 @@ enum { ...@@ -32,7 +32,7 @@ enum {
32 32
33 static struct argp_option mu_radius_argp_option[] = { 33 static struct argp_option mu_radius_argp_option[] = {
34 { "radius-auth-request", OPT_AUTH_REQUEST, N_("REQUEST"), OPTION_HIDDEN, 34 { "radius-auth-request", OPT_AUTH_REQUEST, N_("REQUEST"), OPTION_HIDDEN,
35 N_("radius request to authenitcate the user"), 0 }, 35 N_("radius request to authenticate the user"), 0 },
36 { "radius-getpwnam-request", OPT_GETPWNAM_REQUEST, N_("REQUEST"), OPTION_HIDDEN, 36 { "radius-getpwnam-request", OPT_GETPWNAM_REQUEST, N_("REQUEST"), OPTION_HIDDEN,
37 N_("radius request to retrieve a passwd entry based on username"), 0 }, 37 N_("radius request to retrieve a passwd entry based on username"), 0 },
38 { "radius-getpwuid-request", OPT_GETPWUID_REQUEST, N_("REQUEST"), OPTION_HIDDEN, 38 { "radius-getpwuid-request", OPT_GETPWUID_REQUEST, N_("REQUEST"), OPTION_HIDDEN,
......
...@@ -476,6 +476,7 @@ extern char **exec_compl (int argc, char **argv, int ws); ...@@ -476,6 +476,7 @@ extern char **exec_compl (int argc, char **argv, int ws);
476 # define alias_compl NULL 476 # define alias_compl NULL
477 # define var_compl NULL 477 # define var_compl NULL
478 # define exec_compl NULL 478 # define exec_compl NULL
479 # define mailvar_set_compl NULL
479 #endif 480 #endif
480 481
481 #ifdef __cplusplus 482 #ifdef __cplusplus
......