summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/dbus/example.c2
-rw-r--r--src/common/server.c6
2 files changed, 7 insertions, 1 deletions
diff --git a/src/common/dbus/example.c b/src/common/dbus/example.c
index b78bb004..ee1833d3 100644
--- a/src/common/dbus/example.c
+++ b/src/common/dbus/example.c
@@ -102,7 +102,9 @@ main (int argc, char **argv)
 	gchar *path;
 	GError *error = NULL;
 
+#if ! GLIB_CHECK_VERSION (2, 36, 0)
 	g_type_init ();
+#endif
 
 	connection = dbus_g_bus_get (DBUS_BUS_SESSION, &error);
 	if (connection == NULL) {
diff --git a/src/common/server.c b/src/common/server.c
index 2427ac6d..2f87faad 100644
--- a/src/common/server.c
+++ b/src/common/server.c
@@ -1762,7 +1762,11 @@ server_connect (server *serv, char *hostname, int port, int no_login)
 										serv, 0, (DWORD *)&pid));
 #else
 #ifdef LOOKUPD
-	rand();	/* CL: net_resolve calls rand() when LOOKUPD is set, so prepare a different seed for each child. This method giver a bigger variation in seed values than calling srand(time(0)) in the child itself. */
+	/* CL: net_resolve calls rand() when LOOKUPD is set, so prepare a different
+	 * seed for each child. This method gives a bigger variation in seed values
+	 * than calling srand(time(0)) in the child itself.
+	 */
+	rand();
 #endif
 	switch (pid = fork ())
 	{