[vlc-commits] avahi: remove unused default port

Petri Hintukainen git at videolan.org
Mon Mar 7 14:02:38 CET 2016


vlc | branch: master | Petri Hintukainen <phintuka at gmail.com> | Mon Mar  7 12:37:50 2016 +0200| [61ffa3f4c737f1e71dfc473407bd239e87bb9cd8] | committer: Jean-Baptiste Kempf

avahi: remove unused default port

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/services_discovery/avahi.c |   11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/modules/services_discovery/avahi.c b/modules/services_discovery/avahi.c
index 9834fa5..ee91afd 100644
--- a/modules/services_discovery/avahi.c
+++ b/modules/services_discovery/avahi.c
@@ -79,13 +79,12 @@ static const struct
 {
     const char *psz_protocol;
     const char *psz_service_name;
-    uint16_t    i_default_port;
 } protocols[] = {
-    { "ftp", "_ftp._tcp", 21 },
-    { "smb", "_smb._tcp", 445 },
-    { "nfs", "_nfs._tcp", 2049 },
-    { "sftp", "_sftp-ssh._tcp", 22 },
-    { "rtsp", "_rtsp._tcp.local", 554 },
+    { "ftp", "_ftp._tcp" },
+    { "smb", "_smb._tcp" },
+    { "nfs", "_nfs._tcp" },
+    { "sftp", "_sftp-ssh._tcp" },
+    { "rtsp", "_rtsp._tcp.local" },
 };
 #define NB_PROTOCOLS (sizeof(protocols) / sizeof(*protocols))
 



More information about the vlc-commits mailing list