diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2005-08-02 00:41:50 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2005-08-02 00:41:50 +0000 |
commit | 2cabbf89f9f696a4786476a4eda7a59a1c16d486 (patch) | |
tree | 83657a863dfb434ab4a07edcc90781db848b84e0 /rcfile_y.y | |
parent | aeec83fe86d05c61cc19ae8cb4cf07e959ab9ba1 (diff) | |
download | fetchmail-2cabbf89f9f696a4786476a4eda7a59a1c16d486.tar.gz fetchmail-2cabbf89f9f696a4786476a4eda7a59a1c16d486.tar.bz2 fetchmail-2cabbf89f9f696a4786476a4eda7a59a1c16d486.zip |
Remove port/service dualism and make everything a service.
svn path=/trunk/; revision=4219
Diffstat (limited to 'rcfile_y.y')
-rw-r--r-- | rcfile_y.y | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -153,11 +153,7 @@ serv_option : AKA alias_list #else current.server.authenticate = A_KERBEROS_V4; #endif /* KERBEROS_V5 */ -#ifdef INET6_ENABLE current.server.service = KPOP_PORT; -#else /* INET6_ENABLE */ - current.server.port = KPOP_PORT; -#endif /* INET6_ENABLE */ } | PRINCIPAL STRING {current.server.principal = xstrdup($2);} | ESMTPNAME STRING {current.server.esmtp_name = xstrdup($2);} @@ -175,19 +171,13 @@ serv_option : AKA alias_list | CHECKALIAS {current.server.checkalias = FLAG_TRUE;} | NO CHECKALIAS {current.server.checkalias = FLAG_FALSE;} | SERVICE STRING { -#ifdef INET6_ENABLE current.server.service = $2; -#endif /* INET6_ENABLE */ } | PORT NUMBER { -#ifdef INET6_ENABLE int port = $2; char buf[10]; - sprintf(buf, "%d", port); + snprintf(buf, sizeof buf, "%d", port); current.server.service = xstrdup(buf); -#else - current.server.port = $2; -#endif /* INET6_ENABLE */ } | INTERVAL NUMBER {current.server.interval = $2;} |