diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-01-22 22:55:11 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-01-22 22:55:11 +0000 |
commit | 86f5c9906beac527f3d7966f24811b571a589e08 (patch) | |
tree | 1c9eba853c728b5d734506e1c66c269d96fe46ea /shell/hush.c | |
parent | 2edf52643d3eb3d13f26d31f9678cf122f2063bc (diff) | |
download | busybox-w32-86f5c9906beac527f3d7966f24811b571a589e08.tar.gz busybox-w32-86f5c9906beac527f3d7966f24811b571a589e08.tar.bz2 busybox-w32-86f5c9906beac527f3d7966f24811b571a589e08.zip |
- add platform.h.
- use shorter boilerplate while at it.
Diffstat (limited to 'shell/hush.c')
-rw-r--r-- | shell/hush.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/shell/hush.c b/shell/hush.c index e83d49a86..70533a2b0 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -75,19 +75,7 @@ | |||
75 | * maybe change map[] to use 2-bit entries | 75 | * maybe change map[] to use 2-bit entries |
76 | * (eventually) remove all the printf's | 76 | * (eventually) remove all the printf's |
77 | * | 77 | * |
78 | * This program is free software; you can redistribute it and/or modify | 78 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. |
79 | * it under the terms of the GNU General Public License as published by | ||
80 | * the Free Software Foundation; either version 2 of the License, or | ||
81 | * (at your option) any later version. | ||
82 | * | ||
83 | * This program is distributed in the hope that it will be useful, | ||
84 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
85 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
86 | * General Public License for more details. | ||
87 | * | ||
88 | * You should have received a copy of the GNU General Public License | ||
89 | * along with this program; if not, write to the Free Software | ||
90 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
91 | */ | 79 | */ |
92 | #include <ctype.h> /* isalpha, isdigit */ | 80 | #include <ctype.h> /* isalpha, isdigit */ |
93 | #include <unistd.h> /* getpid */ | 81 | #include <unistd.h> /* getpid */ |
@@ -369,7 +357,7 @@ static int free_pipe(struct pipe *pi, int indent); | |||
369 | /* really run the final data structures: */ | 357 | /* really run the final data structures: */ |
370 | static int setup_redirects(struct child_prog *prog, int squirrel[]); | 358 | static int setup_redirects(struct child_prog *prog, int squirrel[]); |
371 | static int run_list_real(struct pipe *pi); | 359 | static int run_list_real(struct pipe *pi); |
372 | static void pseudo_exec(struct child_prog *child) __attribute__ ((noreturn)); | 360 | static void pseudo_exec(struct child_prog *child) ATTRIBUTE_NORETURN; |
373 | static int run_pipe_real(struct pipe *pi); | 361 | static int run_pipe_real(struct pipe *pi); |
374 | /* extended glob support: */ | 362 | /* extended glob support: */ |
375 | static int globhack(const char *src, int flags, glob_t *pglob); | 363 | static int globhack(const char *src, int flags, glob_t *pglob); |