Commit e8ac3e5d e8ac3e5d8ba74a49507a68b22c43f6295832a69c by Sergey Poznyakoff

(util_printenv): Change return type to void. All callers updated.

1 parent c96e032e
......@@ -332,7 +332,7 @@ extern struct mail_env_entry *util_find_env (const char *var, int create);
extern int util_getenv (void *ptr, const char *variable,
mail_env_data_t type, int warn);
extern int util_printenv (int set);
extern void util_printenv (int set);
extern int util_setenv (const char *name, void *value,
mail_env_data_t type, int overwrite);
extern int util_isdeleted (size_t msgno);
......
......@@ -31,7 +31,8 @@ mail_set (int argc, char **argv)
{
if (argc < 2)
{
return util_printenv (1);
util_printenv (1);
return 0;
}
else
{
......
......@@ -26,7 +26,10 @@ int
mail_unset (int argc, char **argv)
{
if (argc < 2)
return util_printenv (0);
{
util_printenv (0);
return 0;
}
else
{
int status = 0, i = 1;
......
......@@ -589,7 +589,7 @@ envp_comp (const void *a, const void *b)
return strcmp ((*epa)->var, (*epb)->var);
}
int
void
util_printenv (int set)
{
struct mail_env_entry **ep;
......