aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2018-04-14 22:51:56 +0200
committerMatthias Andree <matthias.andree@gmx.de>2018-04-14 22:51:56 +0200
commit23e22b54ff9d2051727d4cb31a9d54f0e5afc4eb (patch)
tree3b43e13d5c43ea8d1c402a97b8b3853aa59db18e
parent9deaf399553050b3b426e8a39d0ffd22430bf72d (diff)
downloadfetchmail-23e22b54ff9d2051727d4cb31a9d54f0e5afc4eb.tar.gz
fetchmail-23e22b54ff9d2051727d4cb31a9d54f0e5afc4eb.tar.bz2
fetchmail-23e22b54ff9d2051727d4cb31a9d54f0e5afc4eb.zip
Fix indentation to silence GCC 8 warnings.
-rw-r--r--smbutil.c14
-rw-r--r--smtp.c2
2 files changed, 8 insertions, 8 deletions
diff --git a/smbutil.c b/smbutil.c
index 78041ae9..d1d127fc 100644
--- a/smbutil.c
+++ b/smbutil.c
@@ -73,14 +73,14 @@ dumpRaw(fp,((unsigned char*)structPtr)+IVAL(&structPtr->header.offset,0),SVAL(&s
static void dumpRaw(FILE *fp, unsigned char *buf, size_t len)
- {
- size_t i;
-
- for (i=0; i<len; ++i)
- fprintf(fp,"%02x ",buf[i]);
-
+{
+ size_t i;
+
+ for (i=0; i<len; ++i)
+ fprintf(fp,"%02x ",buf[i]);
+
fprintf(fp,"\n");
- }
+}
/* helper macro to destructively resize buffers; assumes that bufsiz
* is initialized to 0 if buf is unallocated! */
diff --git a/smtp.c b/smtp.c
index 01e709d0..e6af901b 100644
--- a/smtp.c
+++ b/smtp.c
@@ -205,7 +205,7 @@ int SMTP_ehlo(int sock, char smtp_mode, const char *host, char *name, char *pass
*opt |= hp->value;
if (strncmp(hp->name, "AUTH ", 5) == 0)
strncpy(auth_response, smtp_response, sizeof(auth_response));
- auth_response[sizeof(auth_response)-1] = '\0';
+ auth_response[sizeof(auth_response)-1] = '\0';
}
if ((smtp_response[0] == '1' || smtp_response[0] == '2' || smtp_response[0] == '3') && smtp_response[3] == ' ') {
if (*opt & ESMTP_AUTH)