diff options
author | Mike Frysinger | 2005-04-23 01:43:45 +0000 |
---|---|---|
committer | Mike Frysinger | 2005-04-23 01:43:45 +0000 |
commit | 0ea3a6f660d890368d22fc7d3543487f825b2f1b (patch) | |
tree | 2b2268547f72b337da57d30a20bc084c9619c860 /docs | |
parent | 19d7021d994459115bb4bf89d12bb7a7f7ebfeea (diff) | |
download | busybox-0ea3a6f660d890368d22fc7d3543487f825b2f1b.zip busybox-0ea3a6f660d890368d22fc7d3543487f825b2f1b.tar.gz |
update example to use bb_ prefixed names and remove old note about config.h (since the header is generated automatically now)
Diffstat (limited to 'docs')
-rw-r--r-- | docs/new-applet-HOWTO.txt | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/docs/new-applet-HOWTO.txt b/docs/new-applet-HOWTO.txt index 2fc95d3..605974c 100644 --- a/docs/new-applet-HOWTO.txt +++ b/docs/new-applet-HOWTO.txt @@ -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 ------------- |