diff options
| author | Paul Eggert | 2011-02-21 10:37:35 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-02-21 10:37:35 -0800 |
| commit | 0d7fdc0ef49f92c2ae20e13b172fc5ccc81f36f7 (patch) | |
| tree | d3ee8e8f25375fac9ab75dcd72914cd28b977c8e /lib-src | |
| parent | 1afca8cc21992331ee81622702d5449473cafe94 (diff) | |
| download | emacs-0d7fdc0ef49f92c2ae20e13b172fc5ccc81f36f7.tar.gz emacs-0d7fdc0ef49f92c2ae20e13b172fc5ccc81f36f7.zip | |
* 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/ChangeLog | 4 | ||||
| -rw-r--r-- | lib-src/movemail.c | 15 | ||||
| -rw-r--r-- | lib-src/pop.c | 3 |
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 @@ | |||
| 2 | 2 | ||
| 3 | * movemail.c (main, pop_retr): Rename locals to avoid shadowing. | 3 | * movemail.c (main, pop_retr): Rename locals to avoid shadowing. |
| 4 | (progname, sfi, sfo, ibuffer, obuffer): Remove unused vars. | 4 | (progname, sfi, sfo, ibuffer, obuffer): Remove unused vars. |
| 5 | (DIRECTORY_SEP, IS_DIRECTORY_SEP, DONE, IS_FROM_LINE): | ||
| 6 | Remove unused macros. | ||
| 7 | * pop.c (index): Remove unused macro. | ||
| 8 | (KPOP_PORT): Define only if KERBEROS is defined. | ||
| 5 | 9 | ||
| 6 | Declare file-scope functions and variables static if not exported. | 10 | Declare file-scope functions and variables static if not exported. |
| 7 | This is more consistent, and is nicer with gcc -Wstrict-prototypes. | 11 | 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/>. */ | |||
| 80 | #undef access | 80 | #undef access |
| 81 | #endif /* MSDOS */ | 81 | #endif /* MSDOS */ |
| 82 | 82 | ||
| 83 | #ifndef DIRECTORY_SEP | ||
| 84 | #define DIRECTORY_SEP '/' | ||
| 85 | #endif | ||
| 86 | #ifndef IS_DIRECTORY_SEP | ||
| 87 | #define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP) | ||
| 88 | #endif | ||
| 89 | |||
| 90 | #ifdef WINDOWSNT | 83 | #ifdef WINDOWSNT |
| 91 | #include "ntlib.h" | 84 | #include "ntlib.h" |
| 92 | #undef access | 85 | #undef access |
| @@ -670,7 +663,6 @@ xmalloc (unsigned int size) | |||
| 670 | 663 | ||
| 671 | #define NOTOK (-1) | 664 | #define NOTOK (-1) |
| 672 | #define OK 0 | 665 | #define OK 0 |
| 673 | #define DONE 1 | ||
| 674 | 666 | ||
| 675 | static char Errmsg[200]; /* POP errors, at least, can exceed | 667 | static char Errmsg[200]; /* POP errors, at least, can exceed |
| 676 | the original length of 80. */ | 668 | the original length of 80. */ |
| @@ -855,13 +847,6 @@ pop_retr (popserver server, int msgno, FILE *arg) | |||
| 855 | return (OK); | 847 | return (OK); |
| 856 | } | 848 | } |
| 857 | 849 | ||
| 858 | /* Do this as a macro instead of using strcmp to save on execution time. */ | ||
| 859 | #define IS_FROM_LINE(a) ((a[0] == 'F') \ | ||
| 860 | && (a[1] == 'r') \ | ||
| 861 | && (a[2] == 'o') \ | ||
| 862 | && (a[3] == 'm') \ | ||
| 863 | && (a[4] == ' ')) | ||
| 864 | |||
| 865 | static int | 850 | static int |
| 866 | mbx_write (char *line, int len, FILE *mbf) | 851 | mbx_write (char *line, int len, FILE *mbf) |
| 867 | { | 852 | { |
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 * */); | |||
| 67 | #include <stdio.h> | 67 | #include <stdio.h> |
| 68 | #ifdef STDC_HEADERS | 68 | #ifdef STDC_HEADERS |
| 69 | #include <string.h> | 69 | #include <string.h> |
| 70 | #define index strchr | ||
| 71 | #endif | 70 | #endif |
| 72 | #include <unistd.h> | 71 | #include <unistd.h> |
| 73 | 72 | ||
| @@ -122,9 +121,9 @@ static char *find_crlf (char *, int); | |||
| 122 | to be bigger than the original | 121 | to be bigger than the original |
| 123 | value of 80 */ | 122 | value of 80 */ |
| 124 | #define POP_PORT 110 | 123 | #define POP_PORT 110 |
| 125 | #define KPOP_PORT 1109 | ||
| 126 | #define POP_SERVICE "pop3" /* we don't want the POP2 port! */ | 124 | #define POP_SERVICE "pop3" /* we don't want the POP2 port! */ |
| 127 | #ifdef KERBEROS | 125 | #ifdef KERBEROS |
| 126 | #define KPOP_PORT 1109 | ||
| 128 | #define KPOP_SERVICE "kpop" /* never used: look for 20060515 to see why */ | 127 | #define KPOP_SERVICE "kpop" /* never used: look for 20060515 to see why */ |
| 129 | #endif | 128 | #endif |
| 130 | 129 | ||