Port: Remove _GNU_SOURCE, defined in config.h
[lttng-tools.git] / src / bin / lttng-relayd / cmd-generic.c
index 1122bfe20d1d8c81be864ccf639e57a9704a17ce..89ae69e7a0e31125162ad297ecdf9285ff901d9e 100644 (file)
@@ -1,6 +1,7 @@
 /*
  * Copyright (C) 2013 - Julien Desfossez <jdesfossez@efficios.com>
  *                      David Goulet <dgoulet@efficios.com>
+ *               2015 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License, version 2 only, as
@@ -16,7 +17,7 @@
  * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#define _GNU_SOURCE
+#define _LGPL_SOURCE
 #include <assert.h>
 
 #include <common/common.h>
@@ -37,7 +38,7 @@ int cmd_recv(struct lttcomm_sock *sock, void *buf, size_t len)
                        DBG("Socket %d did an orderly shutdown", sock->fd);
                } else {
                        ERR("Relay didn't receive valid add_stream struct size. "
-                                       "Expected %lu, got %d", len, ret);
+                                       "Expected %zu, got %d", len, ret);
                }
                ret = -1;
                goto error;
This page took 0.024364 seconds and 4 git commands to generate.