aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-03-17 09:05:21 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-03-17 09:05:21 +0000
commitd02db892440499a072ea8c83c2370e9d9c103098 (patch)
tree3b91afcc3cc91b485e23807d75c546b2b73b1940 /libbb
parent85c247161b9e1e7c71ebcb874ed7b6a23b6a5b50 (diff)
downloadbusybox-w32-d02db892440499a072ea8c83c2370e9d9c103098.tar.gz
busybox-w32-d02db892440499a072ea8c83c2370e9d9c103098.tar.bz2
busybox-w32-d02db892440499a072ea8c83c2370e9d9c103098.zip
clean up TODO file. No real code changes.
Diffstat (limited to 'libbb')
-rw-r--r--libbb/appletlib.c1
-rw-r--r--libbb/dump.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c
index aade9046a..e2bb37868 100644
--- a/libbb/appletlib.c
+++ b/libbb/appletlib.c
@@ -264,6 +264,7 @@ static void parse_config_file(void)
264 s = buffer; 264 s = buffer;
265 265
266 if (!fgets(s, sizeof(buffer), f)) { /* Are we done? */ 266 if (!fgets(s, sizeof(buffer), f)) { /* Are we done? */
267// why?
267 if (ferror(f)) { /* Make sure it wasn't a read error. */ 268 if (ferror(f)) { /* Make sure it wasn't a read error. */
268 parse_error("reading"); 269 parse_error("reading");
269 } 270 }
diff --git a/libbb/dump.c b/libbb/dump.c
index 5e43d42a4..4d6472e37 100644
--- a/libbb/dump.c
+++ b/libbb/dump.c
@@ -95,7 +95,7 @@ static void rewrite(FS * fs)
95 */ 95 */
96 for (nconv = 0, fmtp = fu->fmt; *fmtp; nextpr = &pr->nextpr) { 96 for (nconv = 0, fmtp = fu->fmt; *fmtp; nextpr = &pr->nextpr) {
97 /* NOSTRICT */ 97 /* NOSTRICT */
98 /* DBU:[dvae@cray.com] calloc so that forward ptrs start out NULL*/ 98 /* DBU:[dvae@cray.com] zalloc so that forward ptrs start out NULL*/
99 pr = xzalloc(sizeof(PR)); 99 pr = xzalloc(sizeof(PR));
100 if (!fu->nextpr) 100 if (!fu->nextpr)
101 fu->nextpr = pr; 101 fu->nextpr = pr;
@@ -704,7 +704,7 @@ void bb_dump_add(const char *fmt)
704 704
705 /* allocate a new format unit and link it in */ 705 /* allocate a new format unit and link it in */
706 /* NOSTRICT */ 706 /* NOSTRICT */
707 /* DBU:[dave@cray.com] calloc so that forward pointers start out NULL */ 707 /* DBU:[dave@cray.com] zalloc so that forward pointers start out NULL */
708 tfu = xzalloc(sizeof(FU)); 708 tfu = xzalloc(sizeof(FU));
709 *nextfu = tfu; 709 *nextfu = tfu;
710 nextfu = &tfu->nextfu; 710 nextfu = &tfu->nextfu;