diff options
author | Garrett Wollman <wollman@FreeBSD.org> | 1994-08-18 22:36:09 +0000 |
---|---|---|
committer | Garrett Wollman <wollman@FreeBSD.org> | 1994-08-18 22:36:09 +0000 |
commit | f23b4c91c4fb94e1bb6aeb4e7747f4ccf7767b41 (patch) | |
tree | 6b83fdf6eb5926c2f3d175a83d24bf5a2611a012 /sys/kern/imgact_shell.c | |
parent | fa074287a4952da8528838c7812d02678e4c7205 (diff) | |
download | src-f23b4c91c4fb94e1bb6aeb4e7747f4ccf7767b41.tar.gz src-f23b4c91c4fb94e1bb6aeb4e7747f4ccf7767b41.zip |
Fix up some sloppy coding practices:
- Delete redundant declarations.
- Add -Wredundant-declarations to Makefile.i386 so they don't come back.
- Delete sloppy COMMON-style declarations of uninitialized data in
header files.
- Add a few prototypes.
- Clean up warnings resulting from the above.
NB: ioconf.c will still generate a redundant-declaration warning, which
is unavoidable unless somebody volunteers to make `config' smarter.
Notes
Notes:
svn path=/head/; revision=2112
Diffstat (limited to 'sys/kern/imgact_shell.c')
-rw-r--r-- | sys/kern/imgact_shell.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/imgact_shell.c b/sys/kern/imgact_shell.c index 432c899f279c..2884231b0f18 100644 --- a/sys/kern/imgact_shell.c +++ b/sys/kern/imgact_shell.c @@ -28,7 +28,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: imgact_shell.c,v 1.3 1994/05/25 09:02:06 rgrimes Exp $ + * $Id: imgact_shell.c,v 1.4 1994/08/13 03:50:23 wollman Exp $ */ #include <sys/param.h> @@ -141,5 +141,5 @@ exec_shell_imgact(iparams) * Since `const' objects end up in the text segment, TEXT_SET is the * correct directive to use. */ -static const struct execsw shell_execsw = { exec_shell_imgact }; +static const struct execsw shell_execsw = { exec_shell_imgact, "#!" }; TEXT_SET(execsw_set, shell_execsw); |