aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2008-08-01 00:49:29 +0000
committerDan Fandrich <dan@coneharvesters.com>2008-08-01 00:49:29 +0000
commitbdf1157d55ce24ac966d8bc2f76c0ec70ab22fa6 (patch)
tree54c7afd92d4bb2393b2c9060f3c76d8e375b13db
parentb4a5ce89c24a8015c1cb3226fd7a53a7af2048bc (diff)
Made a parameter const
-rw-r--r--lib/netrc.c2
-rw-r--r--lib/netrc.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/netrc.c b/lib/netrc.c
index 78c117512..ac6b5402b 100644
--- a/lib/netrc.c
+++ b/lib/netrc.c
@@ -72,7 +72,7 @@ enum {
#define PASSWORDSIZE 64
/* returns -1 on failure, 0 if the host is found, 1 is the host isn't found */
-int Curl_parsenetrc(char *host,
+int Curl_parsenetrc(const char *host,
char *login,
char *password,
char *netrcfile)
diff --git a/lib/netrc.h b/lib/netrc.h
index 939c552df..a82b3fc35 100644
--- a/lib/netrc.h
+++ b/lib/netrc.h
@@ -22,7 +22,7 @@
*
* $Id$
***************************************************************************/
-int Curl_parsenetrc(char *host,
+int Curl_parsenetrc(const char *host,
char *login,
char *password,
char *filename);