]> granicus.if.org Git - curl/commitdiff
make Curl_handler_*_proxy definition static
authorYang Tse <yangsita@gmail.com>
Mon, 25 Jan 2010 23:41:02 +0000 (23:41 +0000)
committerYang Tse <yangsita@gmail.com>
Mon, 25 Jan 2010 23:41:02 +0000 (23:41 +0000)
lib/ftp.c
lib/ftp.h
lib/imap.c
lib/pop3.c
lib/smtp.c

index 45503ccf50c40b7d92c49fd32dd56f37df93ced3..00b1a8ef22cb2164b576ff2293c08746d6be388f 100644 (file)
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -201,7 +201,7 @@ const struct Curl_handler Curl_handler_ftps = {
  * HTTP-proxyed FTP protocol handler.
  */
 
-const struct Curl_handler Curl_handler_ftp_proxy = {
+static const struct Curl_handler Curl_handler_ftp_proxy = {
   "FTP",                                /* scheme */
   ZERO_NULL,                            /* setup_connection */
   Curl_http,                            /* do_it */
@@ -224,7 +224,7 @@ const struct Curl_handler Curl_handler_ftp_proxy = {
  * HTTP-proxyed FTPS protocol handler.
  */
 
-const struct Curl_handler Curl_handler_ftps_proxy = {
+static const struct Curl_handler Curl_handler_ftps_proxy = {
   "FTPS",                               /* scheme */
   ZERO_NULL,                            /* setup_connection */
   Curl_http,                            /* do_it */
index 1ff2d92f477b6633021af3c8b670607d202aa209..afc5f69c556cfbed444244b6ce91555f831f16e2 100644 (file)
--- a/lib/ftp.h
+++ b/lib/ftp.h
@@ -1,5 +1,5 @@
-#ifndef __FTP_H
-#define __FTP_H
+#ifndef HEADER_CURL_FTP_H
+#define HEADER_CURL_FTP_H
 /***************************************************************************
  *                                  _   _ ____  _
  *  Project                     ___| | | |  _ \| |
@@ -32,14 +32,6 @@ extern const struct Curl_handler Curl_handler_ftp;
 extern const struct Curl_handler Curl_handler_ftps;
 #endif
 
-#ifndef CURL_DISABLE_HTTP
-extern const struct Curl_handler Curl_handler_ftp_proxy;
-
-# ifdef USE_SSL
-extern const struct Curl_handler Curl_handler_ftps_proxy;
-# endif
-#endif
-
 CURLcode Curl_ftpsendf(struct connectdata *, const char *fmt, ...);
 CURLcode Curl_GetFTPResponse(ssize_t *nread, struct connectdata *conn,
                              int *ftpcode);
@@ -146,4 +138,4 @@ struct ftp_conn {
   char * server_os;     /* The target server operating system. */
 };
 
-#endif /* __FTP_H */
+#endif /* HEADER_CURL_FTP_H */
index fab6c4dde44bafdff040f4f9a815b87741ddaa00..2920a017723012c91b6c347216e70ff181fb30b7 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -160,7 +160,7 @@ const struct Curl_handler Curl_handler_imaps = {
  * HTTP-proxyed IMAP protocol handler.
  */
 
-const struct Curl_handler Curl_handler_imap_proxy = {
+static const struct Curl_handler Curl_handler_imap_proxy = {
   "IMAP",                               /* scheme */
   ZERO_NULL,                            /* setup_connection */
   Curl_http,                            /* do_it */
@@ -183,7 +183,7 @@ const struct Curl_handler Curl_handler_imap_proxy = {
  * HTTP-proxyed IMAPS protocol handler.
  */
 
-const struct Curl_handler Curl_handler_imaps_proxy = {
+static const struct Curl_handler Curl_handler_imaps_proxy = {
   "IMAPS",                              /* scheme */
   ZERO_NULL,                            /* setup_connection */
   Curl_http,                            /* do_it */
index 24354504ffbab1629b7991200bba865e91bce063..bb3781ef37aa271c145b7fd8b519469fe04d1e99 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -161,7 +161,7 @@ const struct Curl_handler Curl_handler_pop3s = {
  * HTTP-proxyed POP3 protocol handler.
  */
 
-const struct Curl_handler Curl_handler_pop3_proxy = {
+static const struct Curl_handler Curl_handler_pop3_proxy = {
   "POP3",                               /* scheme */
   ZERO_NULL,                            /* setup_connection */
   Curl_http,                            /* do_it */
@@ -184,7 +184,7 @@ const struct Curl_handler Curl_handler_pop3_proxy = {
  * HTTP-proxyed POP3S protocol handler.
  */
 
-const struct Curl_handler Curl_handler_pop3s_proxy = {
+static const struct Curl_handler Curl_handler_pop3s_proxy = {
   "POP3S",                              /* scheme */
   ZERO_NULL,                            /* setup_connection */
   Curl_http,                            /* do_it */
index 0f34c4f9e65bfb1862a2fe10805c12d2620d1f10..1e53047239bfc87f12ea97e5cca656fdc9232d30 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -159,7 +159,7 @@ const struct Curl_handler Curl_handler_smtps = {
  * HTTP-proxyed SMTP protocol handler.
  */
 
-const struct Curl_handler Curl_handler_smtp_proxy = {
+static const struct Curl_handler Curl_handler_smtp_proxy = {
   "SMTP",                               /* scheme */
   ZERO_NULL,                            /* setup_connection */
   Curl_http,                            /* do_it */
@@ -182,7 +182,7 @@ const struct Curl_handler Curl_handler_smtp_proxy = {
  * HTTP-proxyed SMTPS protocol handler.
  */
 
-const struct Curl_handler Curl_handler_smtps_proxy = {
+static const struct Curl_handler Curl_handler_smtps_proxy = {
   "SMTPS",                              /* scheme */
   ZERO_NULL,                            /* setup_connection */
   Curl_http,                            /* do_it */