/*
* These utility functions loosely make up a Citadel protocol client library.
*
- * Copyright (c) 2016 by the citadel.org team
+ * Copyright (c) 2016-2018 by the citadel.org team
*
* This program is open source software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3.
int i = 0;
char buf[1024];
- if ( (c == NULL) || (msgnums == NULL) || (num_msgs < 1) )
- {
+ if ((c == NULL) || (msgnums == NULL) || (num_msgs < 1)) {
return;
}
strcpy(buf, "DELE ");
do {
sprintf(&buf[strlen(buf)], "%ld", msgnums[i]);
- if ( (((i+1)%50)==0) || (i==num_msgs-1)) // delete up to 50 messages with one server command
+ if ((((i + 1) % 50) == 0) || (i == num_msgs - 1)) // delete up to 50 messages with one server command
{
syslog(LOG_DEBUG, "%s", buf);
ctdl_printf(c, "%s", buf);
ctdl_readline(c, buf, sizeof(buf));
syslog(LOG_DEBUG, "%s", buf);
- }
- else {
+ } else {
strcat(buf, ",");
}
} while (++i < num_msgs);