X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=netrc.c;h=5af542735349214d901c9f0f0f0ad5f366ede832;hb=33cddbff323efcbae1503e91e6e65b2733da80c7;hp=196db6715c65657d82f3618091f4ecd537024c56;hpb=c3e52ea6ca3178b7ecab4b389a9ba9269662b48f;p=~andy%2Ffetchmail diff --git a/netrc.c b/netrc.c index 196db671..5af54273 100644 --- a/netrc.c +++ b/netrc.c @@ -10,15 +10,18 @@ (Makefile.am should have a rule so you can just type "make netrc") */ +#define _XOPEN_SOURCE 600 + +#include "config.h" + #include #include #include #include -#include "config.h" #include "fetchmail.h" #include "netrc.h" -#include "i18n.h" +#include "gettext.h" #ifdef STANDALONE /* Normally defined in xstrdup.c. */ @@ -28,7 +31,7 @@ # define xmalloc malloc # define xrealloc realloc -char *program_name = "netrc"; +const char *program_name = "netrc"; #endif /* Maybe add NEWENTRY to the account information list, LIST. NEWENTRY is @@ -331,7 +334,7 @@ free_netrc(netrc_entry *a) { int main (int argc, char **argv) { struct stat sb; - char *program_name, *file, *host, *login; + char *file, *host, *login; netrc_entry *head, *a; program_name = argv[0];