Code

mpdclient: convert port to "unsigned"
authorMax Kellermann <max.kellermann@gmail.com>
Fri, 17 Mar 2017 22:45:35 +0000 (23:45 +0100)
committerMax Kellermann <max.kellermann@gmail.com>
Fri, 17 Mar 2017 22:45:35 +0000 (23:45 +0100)
src/mpdclient.c
src/mpdclient.h

index f500c9adb689de508b7de4673f73dbe141b72396..31e8a721fa517ce220486d87c8fce6612d6c4dfe 100644 (file)
@@ -161,7 +161,7 @@ mpdclient_disconnect(struct mpdclient *c)
 bool
 mpdclient_connect(struct mpdclient *c,
                  const gchar *host,
-                 gint port,
+                 unsigned port,
                  unsigned timeout_ms,
                  const gchar *password)
 {
index 84878466d22e7a08bc40f42330502745f4f048e9..b959f5c426d9e36cd70138510354a7739c3ee7e3 100644 (file)
@@ -120,7 +120,7 @@ mpdclient_get_current_song(const struct mpdclient *c)
 }
 
 bool
-mpdclient_connect(struct mpdclient *c, const gchar *host, gint port,
+mpdclient_connect(struct mpdclient *c, const gchar *host, unsigned port,
                  unsigned timeout_ms, const gchar *password);
 
 void