mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +00:00
update example to use bb_ prefixed names and remove old note about config.h (since the header is generated automatically now)
This commit is contained in:
parent
19d7021d99
commit
0ea3a6f660
@ -52,10 +52,10 @@ int mu_main(int argc, char **argv)
|
||||
char mu;
|
||||
|
||||
if ((fd = open("/dev/random", O_RDONLY)) < 0)
|
||||
perror_msg_and_die("/dev/random");
|
||||
bb_perror_msg_and_die("/dev/random");
|
||||
|
||||
if ((n = safe_read(fd, &mu, 1)) < 1)
|
||||
perror_msg_and_die("/dev/random");
|
||||
bb_perror_msg_and_die("/dev/random");
|
||||
|
||||
return mu;
|
||||
}
|
||||
@ -137,11 +137,6 @@ algorithm in busybox.c and the Gods of BusyBox smite you. Yea, verily:
|
||||
/* all programs below here are alphabetically "greater than" 'mu' */
|
||||
|
||||
|
||||
Finally, add a define for your applet to include/config.h
|
||||
|
||||
#undef CONFIG_MU
|
||||
|
||||
|
||||
Documentation
|
||||
-------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user