Mercurial > hg > toybox
comparison toys/toysh.c @ 624:1e8b9acdafeb
Genericize llist code a bit: rename llist_free() to llist_traverse(), and no longer accept NULL as a synonym for free.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 15 Jul 2012 17:22:04 -0500 |
parents | 979c5ab6f0c2 |
children |
comparison
equal
deleted
inserted
replaced
623:f51beec92738 | 624:1e8b9acdafeb |
---|---|
340 if (!line.cmd) break; | 340 if (!line.cmd) break; |
341 | 341 |
342 // Run those commands | 342 // Run those commands |
343 | 343 |
344 run_pipeline(&line); | 344 run_pipeline(&line); |
345 llist_free(line.cmd, free_cmd); | 345 llist_traverse(line.cmd, free_cmd); |
346 } | 346 } |
347 } | 347 } |
348 | 348 |
349 void cd_main(void) | 349 void cd_main(void) |
350 { | 350 { |