From 72d1e737b5e63e4af94dbda4e9b88266ff15170a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Sun, 3 Feb 2008 11:33:27 +0000 Subject: [PATCH] These are files are shell scripts; give smart editors a chance to figure it out by adding the usual shebang. MFC after: 2 weeks --- usr.bin/kdump/mkioctls | 10 ++++++---- usr.bin/kdump/mksubr | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/usr.bin/kdump/mkioctls b/usr.bin/kdump/mkioctls index fbbd2b1010a..9d11984dd94 100644 --- a/usr.bin/kdump/mkioctls +++ b/usr.bin/kdump/mkioctls @@ -1,7 +1,9 @@ -set -e - +#!/bin/sh +# # $FreeBSD$ +set -e + if [ "x$1" = "x-s" ]; then use_switch=1 shift @@ -70,13 +72,13 @@ BEGIN { } /^#[ ]*define[ ]+[A-Za-z_][A-Za-z0-9_]*[ ]+_IO/ { - + # find where the name starts for (i = 1; i <= NF; i++) if ($i ~ /define/) break; ++i; - # + # if (use_switch) printf("\tcase %s:\n\t\treturn(\"%s\");\n", $i, $i); else diff --git a/usr.bin/kdump/mksubr b/usr.bin/kdump/mksubr index 22db1253062..e93f03e94f1 100644 --- a/usr.bin/kdump/mksubr +++ b/usr.bin/kdump/mksubr @@ -1,5 +1,7 @@ -set -e - +#!/bin/sh +# +# $FreeBSD$ +# # Generates kdump_subr.c # mkioctls is a special-purpose script, and works fine as it is # now, so it remains independent. The idea behind how it generates @@ -16,7 +18,7 @@ set -e # that the auto_*_type() functions are inappropriate for. # MANUAL: Manually entered and must therefore be manually updated. -# $FreeBSD$ +set -e LC_ALL=C; export LC_ALL @@ -426,7 +428,7 @@ void sendrecvflagsname (int flags) { int or = 0; - + if (flags == 0) { (void)printf("0"); return;