From 20bd667d8a84ba6ee380d5d3851a54ef5984196c Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 27 May 2019 07:35:07 +0200 Subject: bsps: Fix warnings in greth --- bsps/shared/grlib/net/greth.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bsps/shared/grlib') diff --git a/bsps/shared/grlib/net/greth.c b/bsps/shared/grlib/net/greth.c index 30eb4cc8a9..bc4d3cc40f 100644 --- a/bsps/shared/grlib/net/greth.c +++ b/bsps/shared/grlib/net/greth.c @@ -520,7 +520,7 @@ greth_initialize_hardware (struct greth_softc *sc) sc->fd = 0; sc->sp = 0; sc->auto_neg = 0; - _Timespec_Set_to_zero(&sc->auto_neg_time); + timespecclear(&sc->auto_neg_time); if ((phyctrl >> 12) & 1) { /*wait for auto negotiation to complete*/ sc->auto_neg = 1; @@ -529,8 +529,8 @@ greth_initialize_hardware (struct greth_softc *sc) while (!(((phystatus = read_mii(sc, phyaddr, 1)) >> 5) & 1)) { if (rtems_clock_get_uptime(&tnow) != RTEMS_SUCCESSFUL) printk("rtems_clock_get_uptime failed\n"); - _Timespec_Subtract(&tstart, &tnow, &sc->auto_neg_time); - if (_Timespec_Greater_than(&sc->auto_neg_time, &greth_tan)) { + timespecsub(&tnow, &tstart, &sc->auto_neg_time); + if (timespeccmp(&sc->auto_neg_time, &greth_tan, >)) { sc->auto_neg = -1; /* Failed */ tmp1 = read_mii(sc, phyaddr, 0); sc->gb = ((phyctrl >> 6) & 1) && !((phyctrl >> 13) & 1); -- cgit v1.2.3