summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-02-21 10:37:35 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2011-02-21 10:37:35 -0800
commit0d7fdc0ef49f92c2ae20e13b172fc5ccc81f36f7 (patch)
treed3ee8e8f25375fac9ab75dcd72914cd28b977c8e /lib-src
parent1afca8cc21992331ee81622702d5449473cafe94 (diff)
downloademacs-0d7fdc0ef49f92c2ae20e13b172fc5ccc81f36f7.tar.gz
* movemail.c: (DIRECTORY_SEP, IS_DIRECTORY_SEP, DONE, IS_FROM_LINE):
Remove unused macros. * pop.c (index): Remove unused macro. (KPOP_PORT): Define only if KERBEROS is defined.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog4
-rw-r--r--lib-src/movemail.c15
-rw-r--r--lib-src/pop.c3
3 files changed, 5 insertions, 17 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index f2f2c0af1ce..53983a9decc 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -2,6 +2,10 @@
* movemail.c (main, pop_retr): Rename locals to avoid shadowing.
(progname, sfi, sfo, ibuffer, obuffer): Remove unused vars.
+ (DIRECTORY_SEP, IS_DIRECTORY_SEP, DONE, IS_FROM_LINE):
+ Remove unused macros.
+ * pop.c (index): Remove unused macro.
+ (KPOP_PORT): Define only if KERBEROS is defined.
Declare file-scope functions and variables static if not exported.
This is more consistent, and is nicer with gcc -Wstrict-prototypes.
diff --git a/lib-src/movemail.c b/lib-src/movemail.c
index bb93d84d89a..a5084f27f22 100644
--- a/lib-src/movemail.c
+++ b/lib-src/movemail.c
@@ -80,13 +80,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#undef access
#endif /* MSDOS */
-#ifndef DIRECTORY_SEP
-#define DIRECTORY_SEP '/'
-#endif
-#ifndef IS_DIRECTORY_SEP
-#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)
-#endif
-
#ifdef WINDOWSNT
#include "ntlib.h"
#undef access
@@ -670,7 +663,6 @@ xmalloc (unsigned int size)
#define NOTOK (-1)
#define OK 0
-#define DONE 1
static char Errmsg[200]; /* POP errors, at least, can exceed
the original length of 80. */
@@ -855,13 +847,6 @@ pop_retr (popserver server, int msgno, FILE *arg)
return (OK);
}
-/* Do this as a macro instead of using strcmp to save on execution time. */
-#define IS_FROM_LINE(a) ((a[0] == 'F') \
- && (a[1] == 'r') \
- && (a[2] == 'o') \
- && (a[3] == 'm') \
- && (a[4] == ' '))
-
static int
mbx_write (char *line, int len, FILE *mbf)
{
diff --git a/lib-src/pop.c b/lib-src/pop.c
index a3fda09d44f..159926e97b0 100644
--- a/lib-src/pop.c
+++ b/lib-src/pop.c
@@ -67,7 +67,6 @@ extern struct servent *hes_getservbyname (/* char *, char * */);
#include <stdio.h>
#ifdef STDC_HEADERS
#include <string.h>
-#define index strchr
#endif
#include <unistd.h>
@@ -122,9 +121,9 @@ static char *find_crlf (char *, int);
to be bigger than the original
value of 80 */
#define POP_PORT 110
-#define KPOP_PORT 1109
#define POP_SERVICE "pop3" /* we don't want the POP2 port! */
#ifdef KERBEROS
+#define KPOP_PORT 1109
#define KPOP_SERVICE "kpop" /* never used: look for 20060515 to see why */
#endif