]> Pileus Git - ~andy/fetchmail/commitdiff
Nake methods invisible except through the driver's table.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 13 Mar 2001 23:36:42 +0000 (23:36 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 13 Mar 2001 23:36:42 +0000 (23:36 -0000)
svn path=/trunk/; revision=3249

imap.c
pop2.c
pop3.c

diff --git a/imap.c b/imap.c
index 40b7b386b6c63931ec17d70c81295b3b97ee0d0e..d92dad03fbe9751140ab942014b84675dcf1722e 100644 (file)
--- a/imap.c
+++ b/imap.c
@@ -35,7 +35,7 @@ static flag do_idle;
 static char capabilities[MSGBUFSIZE+1];
 static unsigned int *unseen_messages;
 
-int imap_ok(int sock, char *argbuf)
+static int imap_ok(int sock, char *argbuf)
 /* parse command response */
 {
     char buf[MSGBUFSIZE+1];
@@ -210,7 +210,7 @@ static int do_imap_ntlm(int sock, struct query *ctl)
 }
 #endif /* NTLM */
 
-int imap_canonicalize(char *result, char *raw, int maxlen)
+static int imap_canonicalize(char *result, char *raw, int maxlen)
 /* encode an IMAP password as per RFC1730's quoting conventions */
 {
     int i, j;
@@ -227,7 +227,7 @@ int imap_canonicalize(char *result, char *raw, int maxlen)
     return(i);
 }
 
-int imap_getauth(int sock, struct query *ctl, char *greeting)
+static int imap_getauth(int sock, struct query *ctl, char *greeting)
 /* apply for connection authorization */
 {
     int ok = 0;
diff --git a/pop2.c b/pop2.c
index d81952f35e2e3ca28a067bc54026b7ed24224994..1d2f74a555eaf39b82c4bd0485e3f625a799634b 100644 (file)
--- a/pop2.c
+++ b/pop2.c
@@ -17,7 +17,7 @@
 
 static int pound_arg, equal_arg;
 
-int pop2_ok (int sock, char *argbuf)
+static int pop2_ok (int sock, char *argbuf)
 /* parse POP2 command response */
 {
     int ok;
@@ -51,7 +51,7 @@ int pop2_ok (int sock, char *argbuf)
     return(ok);
 }
 
-int pop2_getauth(int sock, struct query *ctl, char *buf)
+static int pop2_getauth(int sock, struct query *ctl, char *buf)
 /* apply for connection authorization */
 {
     return(gen_transact(sock,
diff --git a/pop3.c b/pop3.c
index f781105dd627d71882ba6d8592e4bf4857fd16ac..c97c8c7cf8a17ea83737827f2cdd05995bf2be5d 100644 (file)
--- a/pop3.c
+++ b/pop3.c
@@ -41,7 +41,7 @@ static char lastok[POPBUFSIZE+1];
 
 #define DOTLINE(s)     (s[0] == '.' && (s[1]=='\r'||s[1]=='\n'||s[1]=='\0'))
 
-int pop3_ok (int sock, char *argbuf)
+static int pop3_ok (int sock, char *argbuf)
 /* parse command response */
 {
     int ok;
@@ -49,8 +49,7 @@ int pop3_ok (int sock, char *argbuf)
     char *bufp;
 
     if ((ok = gen_recv(sock, buf, sizeof(buf))) == 0)
-    {
-       bufp = buf;
+    {  bufp = buf;
        if (*bufp == '+' || *bufp == '-')
            bufp++;
        else
@@ -123,7 +122,7 @@ int pop3_ok (int sock, char *argbuf)
     return(ok);
 }
 
-int pop3_getauth(int sock, struct query *ctl, char *greeting)
+static int pop3_getauth(int sock, struct query *ctl, char *greeting)
 /* apply for connection authorization */
 {
     int ok;
@@ -346,8 +345,7 @@ int pop3_getauth(int sock, struct query *ctl, char *greeting)
     return(PS_SUCCESS);
 }
 
-static int
-pop3_gettopid( int sock, int num , char *id)
+static int pop3_gettopid( int sock, int num , char *id)
 {
     int ok;
     int got_it;
@@ -370,8 +368,7 @@ pop3_gettopid( int sock, int num , char *id)
     return 0;
 }
 
-static int
-pop3_slowuidl( int sock,  struct query *ctl, int *countp, int *newp)
+static int pop3_slowuidl( int sock,  struct query *ctl, int *countp, int *newp)
 {
     /* This approach tries to get the message headers from the
      * remote hosts and compares the message-id to the already known