mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +00:00
runlevel: -2 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
650a7011a8
commit
1e1136025b
@ -11,17 +11,16 @@
|
|||||||
*
|
*
|
||||||
* initially busyboxified by Bernhard Reutner-Fischer
|
* initially busyboxified by Bernhard Reutner-Fischer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <utmp.h>
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
#include <utmp.h>
|
||||||
|
|
||||||
int runlevel_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
|
int runlevel_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
|
||||||
int runlevel_main(int argc, char **argv)
|
int runlevel_main(int argc UNUSED_PARAM, char **argv)
|
||||||
{
|
{
|
||||||
struct utmp *ut;
|
struct utmp *ut;
|
||||||
char prev;
|
char prev;
|
||||||
|
|
||||||
if (argc > 1) utmpname(argv[1]);
|
if (argv[1]) utmpname(argv[1]);
|
||||||
|
|
||||||
setutent();
|
setutent();
|
||||||
while ((ut = getutent()) != NULL) {
|
while ((ut = getutent()) != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user