view toys/sleep.c @ 186:25447caf1b4b

Change command main() functions to return void, and exit(toys.exitval) from the toybox infrastructure instead. Eliminates a return call from each command.
author Rob Landley <rob@landley.net>
date Thu, 29 Nov 2007 18:14:37 -0600
parents 93da7cc220e6
children 30a6db5a95c2
line wrap: on
line source

/* vi: set sw=4 ts=4: */
/*
 * sleep.c - Wait for a number of seconds.
 */

#include "toys.h"

void sleep_main(void)
{
	toys.exitval = sleep(atol(*toys.optargs));
}