summaryrefslogtreecommitdiff
path: root/docs/new-applet-HOWTO.txt
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-04-23 01:43:45 +0000
committerMike Frysinger <vapier@gentoo.org>2005-04-23 01:43:45 +0000
commit0ea3a6f660d890368d22fc7d3543487f825b2f1b (patch)
tree2b2268547f72b337da57d30a20bc084c9619c860 /docs/new-applet-HOWTO.txt
parent19d7021d994459115bb4bf89d12bb7a7f7ebfeea (diff)
downloadbusybox-w32-0ea3a6f660d890368d22fc7d3543487f825b2f1b.tar.gz
busybox-w32-0ea3a6f660d890368d22fc7d3543487f825b2f1b.tar.bz2
busybox-w32-0ea3a6f660d890368d22fc7d3543487f825b2f1b.zip
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/new-applet-HOWTO.txt')
-rw-r--r--docs/new-applet-HOWTO.txt9
1 files changed, 2 insertions, 7 deletions
diff --git a/docs/new-applet-HOWTO.txt b/docs/new-applet-HOWTO.txt
index 2fc95d36d..605974c3a 100644
--- a/docs/new-applet-HOWTO.txt
+++ b/docs/new-applet-HOWTO.txt
@@ -52,10 +52,10 @@ int mu_main(int argc, char **argv)
52 char mu; 52 char mu;
53 53
54 if ((fd = open("/dev/random", O_RDONLY)) < 0) 54 if ((fd = open("/dev/random", O_RDONLY)) < 0)
55 perror_msg_and_die("/dev/random"); 55 bb_perror_msg_and_die("/dev/random");
56 56
57 if ((n = safe_read(fd, &mu, 1)) < 1) 57 if ((n = safe_read(fd, &mu, 1)) < 1)
58 perror_msg_and_die("/dev/random"); 58 bb_perror_msg_and_die("/dev/random");
59 59
60 return mu; 60 return mu;
61} 61}
@@ -137,11 +137,6 @@ algorithm in busybox.c and the Gods of BusyBox smite you. Yea, verily:
137 /* all programs below here are alphabetically "greater than" 'mu' */ 137 /* all programs below here are alphabetically "greater than" 'mu' */
138 138
139 139
140Finally, add a define for your applet to include/config.h
141
142 #undef CONFIG_MU
143
144
145Documentation 140Documentation
146------------- 141-------------
147 142