*
* Copyright (C) 2003-2004 by Erik Andersen <andersen@codepoet.org>
*
- * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
+ * Licensed under the GPL version 2, see the file LICENSE in this tarball.
*/
#include "busybox.h"
bb_perror_msg_and_die("short read");
}
- if (strncmp(ut.ut_line, "~", 1) == 0) {
+ if (ut.ut_line[0] == '~') {
if (strncmp(ut.ut_user, "shutdown", 8) == 0)
ut.ut_type = SHUTDOWN_TIME;
else if (strncmp(ut.ut_user, "reboot", 6) == 0)
ctime(&t_tmp) + 4);
}
- bb_fflush_stdout_and_exit(EXIT_SUCCESS);
+ fflush_stdout_and_exit(EXIT_SUCCESS);
}