diff options
Diffstat (limited to 'cpukit/libnetworking/rtems/rtems_bootp.c')
-rw-r--r-- | cpukit/libnetworking/rtems/rtems_bootp.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cpukit/libnetworking/rtems/rtems_bootp.c b/cpukit/libnetworking/rtems/rtems_bootp.c index 23c6801757..caf2faa6e2 100644 --- a/cpukit/libnetworking/rtems/rtems_bootp.c +++ b/cpukit/libnetworking/rtems/rtems_bootp.c @@ -18,9 +18,12 @@ void rtems_bsdnet_do_bootp (void) { + bool ok; rtems_bsdnet_semaphore_obtain (); - bootpc_init (FALSE); + ok = bootpc_init (false, true); rtems_bsdnet_semaphore_release (); + if (!ok) + panic ("rtems_bsdnet_do_bootp: bootp failed"); } /* @@ -30,7 +33,10 @@ rtems_bsdnet_do_bootp (void) void rtems_bsdnet_do_bootp_and_rootfs (void) { + bool ok; rtems_bsdnet_semaphore_obtain (); - bootpc_init (TRUE); + ok = bootpc_init (true, true); rtems_bsdnet_semaphore_release (); + if (!ok) + panic ("rtems_bsdnet_do_bootp_and_rootfs: bootp failed"); } |