summaryrefslogtreecommitdiff
path: root/n/avr/modules/utils
diff options
context:
space:
mode:
authorschodet2005-10-08 13:58:07 +0000
committerschodet2005-10-08 13:58:07 +0000
commitc1aa462b9cecd5d3e6010395f210e44ddafe632b (patch)
tree80ce8ed9847cc3c319602bbb39e0e80fde6e9ed8 /n/avr/modules/utils
parentca63cc9444a390be6e0b44dfa745fa1984a1d197 (diff)
Utilise le module host.
Diffstat (limited to 'n/avr/modules/utils')
-rw-r--r--n/avr/modules/utils/utils.host.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/n/avr/modules/utils/utils.host.c b/n/avr/modules/utils/utils.host.c
index fcc93bf..8d2be82 100644
--- a/n/avr/modules/utils/utils.host.c
+++ b/n/avr/modules/utils/utils.host.c
@@ -22,14 +22,12 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* }}} */
-#define _GNU_SOURCE
#include "utils.h"
+#include "modules/host/host.h"
#include <time.h>
#include <errno.h>
#include <assert.h>
-#include <unistd.h>
-#include <stdlib.h>
/** Delay in seconds. */
void
@@ -47,8 +45,6 @@ utils_delay (double s)
void
utils_reset (void)
{
- execlp (program_invocation_name, program_invocation_name, 0);
- assert_perror (errno);
- abort ();
+ host_reset ();
}