X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fnotify_email.c;h=cefeb22f4717d6b53695b123099ca570491d47f8;hb=e1fda36ff7e4b5f508b630b614b182e298d91fb7;hp=0120a4039466e240c753ed3e7e2472995dec3335;hpb=290741f2e6de9e9b467463c1f0c6f031c4036428;p=collectd.git diff --git a/src/notify_email.c b/src/notify_email.c index 0120a403..cefeb22f 100644 --- a/src/notify_email.c +++ b/src/notify_email.c @@ -23,6 +23,7 @@ **/ #include "collectd.h" + #include "common.h" #include "plugin.h" @@ -66,8 +67,7 @@ static char *email_subject = NULL; static int authinteract (auth_client_request_t request, char **result, int fields, void __attribute__((unused)) *arg) { - int i; - for (i = 0; i < fields; i++) + for (int i = 0; i < fields; i++) { if (request[i].flags & AUTH_USER) result[i] = smtp_user;