[vlc-devel] commit: Use add_password instead of add_string when applicable. ( Rémi Duraffort )

git version control git at videolan.org
Mon Jun 15 09:20:49 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Jun 15 08:49:46 2009 +0200| [e4a867371a688d8fc4bcfc45c9d61d4386100b05] | committer: Rémi Duraffort 

Use add_password instead of add_string when applicable.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e4a867371a688d8fc4bcfc45c9d61d4386100b05
---

 modules/access/dvb/access.c  |    4 ++--
 modules/access/ftp.c         |    4 ++--
 modules/access/smb.c         |    4 ++--
 modules/access_output/http.c |    4 ++--
 modules/demux/live555.cpp    |    4 ++--
 5 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/modules/access/dvb/access.c b/modules/access/dvb/access.c
index df8cd1c..4726aab 100644
--- a/modules/access/dvb/access.c
+++ b/modules/access/dvb/access.c
@@ -250,8 +250,8 @@ vlc_module_begin ()
                 true )
     add_string( "dvb-http-user", NULL, NULL, USER_TEXT, USER_LONGTEXT,
                 true )
-    add_string( "dvb-http-password", NULL, NULL, PASSWORD_TEXT,
-                PASSWORD_LONGTEXT, true )
+    add_password( "dvb-http-password", NULL, NULL, PASSWORD_TEXT,
+                  PASSWORD_LONGTEXT, true )
     add_string( "dvb-http-acl", NULL, NULL, ACL_TEXT, ACL_LONGTEXT,
                 true )
     add_string( "dvb-http-intf-cert", NULL, NULL, CERT_TEXT, CERT_LONGTEXT,
diff --git a/modules/access/ftp.c b/modules/access/ftp.c
index b3dc2c9..b2d692d 100644
--- a/modules/access/ftp.c
+++ b/modules/access/ftp.c
@@ -79,8 +79,8 @@ vlc_module_begin ()
         change_safe()
     add_string( "ftp-user", "anonymous", NULL, USER_TEXT, USER_LONGTEXT,
                 false )
-    add_string( "ftp-pwd", "anonymous at example.com", NULL, PASS_TEXT,
-                PASS_LONGTEXT, false )
+    add_password( "ftp-pwd", "anonymous at example.com", NULL, PASS_TEXT,
+                  PASS_LONGTEXT, false )
     add_string( "ftp-account", "anonymous", NULL, ACCOUNT_TEXT,
                 ACCOUNT_LONGTEXT, false )
     add_shortcut( "ftp" )
diff --git a/modules/access/smb.c b/modules/access/smb.c
index 3a572e2..5d735f0 100644
--- a/modules/access/smb.c
+++ b/modules/access/smb.c
@@ -86,8 +86,8 @@ vlc_module_begin ()
         change_safe()
     add_string( "smb-user", NULL, NULL, USER_TEXT, USER_LONGTEXT,
                 false )
-    add_string( "smb-pwd", NULL, NULL, PASS_TEXT,
-                PASS_LONGTEXT, false )
+    add_password( "smb-pwd", NULL, NULL, PASS_TEXT,
+                  PASS_LONGTEXT, false )
     add_string( "smb-domain", NULL, NULL, DOMAIN_TEXT,
                 DOMAIN_LONGTEXT, false )
     add_shortcut( "smb" )
diff --git a/modules/access_output/http.c b/modules/access_output/http.c
index 6e713e5..10e07dc 100644
--- a/modules/access_output/http.c
+++ b/modules/access_output/http.c
@@ -102,8 +102,8 @@ vlc_module_begin ()
     set_subcategory( SUBCAT_SOUT_ACO )
     add_string( SOUT_CFG_PREFIX "user", "", NULL,
                 USER_TEXT, USER_LONGTEXT, true )
-    add_string( SOUT_CFG_PREFIX "pwd", "", NULL,
-                PASS_TEXT, PASS_LONGTEXT, true )
+    add_password( SOUT_CFG_PREFIX "pwd", "", NULL,
+                  PASS_TEXT, PASS_LONGTEXT, true )
     add_string( SOUT_CFG_PREFIX "mime", "", NULL,
                 MIME_TEXT, MIME_LONGTEXT, true )
     add_string( SOUT_CFG_PREFIX "cert", "vlc.pem", NULL,
diff --git a/modules/demux/live555.cpp b/modules/demux/live555.cpp
index 99fc633..ae1dd9b 100644
--- a/modules/demux/live555.cpp
+++ b/modules/demux/live555.cpp
@@ -134,8 +134,8 @@ vlc_module_begin ()
                     KASENNA_LONGTEXT, true )
         add_string( "rtsp-user", NULL, NULL, USER_TEXT,
                     USER_LONGTEXT, true )
-        add_string( "rtsp-pwd", NULL, NULL, PASS_TEXT,
-                    PASS_LONGTEXT, true )
+        add_password( "rtsp-pwd", NULL, NULL, PASS_TEXT,
+                      PASS_LONGTEXT, true )
 vlc_module_end ()
 
 




More information about the vlc-devel mailing list