aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2006-03-13 23:35:29 +0000
committerMatthias Andree <matthias.andree@gmx.de>2006-03-13 23:35:29 +0000
commit20a0097f74bfdec16c17dd7d3eb5968f81ec90c1 (patch)
tree70fa2b57d137718f66229fa28ad12528991e3fb3 /driver.c
parentb7e145bdf22387e6cba4b54099407102ff310967 (diff)
downloadfetchmail-20a0097f74bfdec16c17dd7d3eb5968f81ec90c1.tar.gz
fetchmail-20a0097f74bfdec16c17dd7d3eb5968f81ec90c1.tar.bz2
fetchmail-20a0097f74bfdec16c17dd7d3eb5968f81ec90c1.zip
Rename a methods and some variables to steer clear of C++ namespace.
svn path=/branches/BRANCH_6-3/; revision=4733
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/driver.c b/driver.c
index c5b92ad2..08d320a9 100644
--- a/driver.c
+++ b/driver.c
@@ -774,7 +774,7 @@ flagthemail:
if (outlevel > O_SILENT)
report(stdout, GT_(" retained\n"));
}
- else if (ctl->server.base_protocol->delete
+ else if (ctl->server.base_protocol->delete_msg
&& !suppress_delete
&& ((msgcode >= 0 && !ctl->keep)
|| (msgcode == MSGLEN_OLD && ctl->flush)
@@ -783,7 +783,7 @@ flagthemail:
(*deletions)++;
if (outlevel > O_SILENT)
report_complete(stdout, GT_(" flushed\n"));
- err = (ctl->server.base_protocol->delete)(mailserver_socket, ctl, num);
+ err = (ctl->server.base_protocol->delete_msg)(mailserver_socket, ctl, num);
if (err != 0)
return(err);
}
@@ -940,7 +940,7 @@ static int do_session(
{
/* setjmp returned zero -> normal operation */
char buf[MSGBUFSIZE+1], *realhost;
- int count, new, bytes;
+ int count, newm, bytes;
int fetches, dispatches, oldphase;
struct idlist *idp;
@@ -1304,7 +1304,7 @@ is restored."));
/* compute # of messages and number of new messages waiting */
stage = STAGE_GETRANGE;
- err = (ctl->server.base_protocol->getrange)(mailserver_socket, ctl, (const char *)idp->id, &count, &new, &bytes);
+ err = (ctl->server.base_protocol->getrange)(mailserver_socket, ctl, (const char *)idp->id, &count, &newm, &bytes);
if (err != 0)
goto cleanUp;
@@ -1322,11 +1322,11 @@ is restored."));
report(stdout, GT_("Polling %s\n"), ctl->server.truename);
else if (count != 0)
{
- if (new != -1 && (count - new) > 0)
+ if (newm != -1 && (count - newm) > 0)
report_build(stdout, ngettext("%d message (%d %s) for %s", "%d messages (%d %s) for %s", (unsigned long)count),
count,
- count-new,
- ngettext("seen", "seen", (unsigned long)count-new),
+ count - newm,
+ ngettext("seen", "seen", (unsigned long)count-newm),
buf);
else
report_build(stdout, ngettext("%d message for %s",
@@ -1352,9 +1352,9 @@ is restored."));
if (check_only)
{
- if (new == -1 || ctl->fetchall)
- new = count;
- fetches = new; /* set error status correctly */
+ if (newm == -1 || ctl->fetchall)
+ newm = count;
+ fetches = newm; /* set error status correctly */
/*
* There used to be a `goto noerror' here, but this
* prevented checking of multiple folders. This