X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fhealth%2Fhealth.c;h=62e211419fe463c28ae5c64cb842f1038295bfc7;hp=49f6dc0ab91d7c7b3a3a1c8adfc6a360916ddddc;hb=ab5be9fa2eb5ba9600a82cd18fd3cfcbac69169a;hpb=6c71277b0dc97ce8a4ac6b8d359b4b349c04b658 diff --git a/src/common/health/health.c b/src/common/health/health.c index 49f6dc0ab..62e211419 100644 --- a/src/common/health/health.c +++ b/src/common/health/health.c @@ -1,22 +1,12 @@ /* - * Copyright (C) 2012 - David Goulet - * Copyright (C) 2013 - Mathieu Desnoyers + * Copyright (C) 2012 David Goulet + * Copyright (C) 2013 Mathieu Desnoyers * - * 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 - * published by the Free Software Foundation. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along with - * this program; if not, write to the Free Software Foundation, Inc., 51 - * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#define _GNU_SOURCE +#define _LGPL_SOURCE #include #include #include @@ -171,7 +161,7 @@ static int validate_state(struct health_app *ha, struct health_state *state) last = state->last; current = uatomic_read(&state->current); - ret = clock_gettime(CLOCK_MONOTONIC, ¤t_time); + ret = lttng_clock_gettime(CLOCK_MONOTONIC, ¤t_time); if (ret < 0) { PERROR("Error reading time\n"); /* error */