summaryrefslogtreecommitdiffstats
path: root/ntp
diff options
context:
space:
mode:
authorJennifer Averett <jennifer.averett@oarcorp.com>2021-05-21 10:25:16 -0500
committerJoel Sherrill <joel@rtems.org>2021-05-21 12:43:44 -0500
commitbfcd290c10c237fa9913ee1afc85b6796c0ad9b4 (patch)
tree306988a8f2a63b6e819091d435878e2587ff34e1 /ntp
parentRemove ChangeLog files (diff)
downloadnetwork-demos-bfcd290c10c237fa9913ee1afc85b6796c0ad9b4.tar.bz2
Required changes to get back to a buildable state.
This primarily reflects changes since the legacy network stack was split into its own repository.
Diffstat (limited to 'ntp')
-rw-r--r--ntp/Makefile2
-rw-r--r--ntp/init.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/ntp/Makefile b/ntp/Makefile
index 8b3cd57..6ae079d 100644
--- a/ntp/Makefile
+++ b/ntp/Makefile
@@ -36,7 +36,7 @@ CFLAGS_OPTIMIZE_V +=
CFLAGS_DEBUG_V += -v -qrtems_debug
LD_PATHS +=
-LD_LIBS +=
+LD_LIBS += -lnetworking
#
# Add your list of files to delete here. The config files
diff --git a/ntp/init.c b/ntp/init.c
index 58b9435..b680c18 100644
--- a/ntp/init.c
+++ b/ntp/init.c
@@ -33,15 +33,15 @@ Init (rtems_task_argument ignored)
int rtems_bsdnet_synchronize_ntp (int interval, rtems_task_priority priority);
printf ("****************** NTP TEST ***************\n");
- rtems_clock_get (RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticksPerSecond);
- sc = rtems_clock_get (RTEMS_CLOCK_GET_TOD, &now);
+ ticksPerSecond = rtems_clock_get_ticks_per_second();
+ sc = rtems_clock_get_tod (&now);
if (sc == RTEMS_SUCCESSFUL)
printf ("Got time of day -- should have failed!\n");
else if (sc != RTEMS_NOT_DEFINED)
printf ("Failed to get time of day: %s\n", rtems_status_text (sc));
rtems_bsdnet_initialize_network ();
rtems_bsdnet_synchronize_ntp (0, 0);
- sc = rtems_clock_get (RTEMS_CLOCK_GET_TOD, &now);
+ sc = rtems_clock_get_tod (&now);
if (sc != RTEMS_SUCCESSFUL)
printf ("Failed to get time of day: %s\n", rtems_status_text (sc));
printf (