whitespace
authorRoy Marples <roy@marples.name>
Wed, 28 Nov 2007 15:46:12 +0000 (15:46 +0000)
committerRoy Marples <roy@marples.name>
Wed, 28 Nov 2007 15:46:12 +0000 (15:46 +0000)
dnsmasq.in
libc.in
named.in
resolvconf.in

index 8b104eca02ab00679f0dafe5db65bf4c095e9611..027d752263ccda126364a2c4450bce1dd1355ed8 100755 (executable)
@@ -81,8 +81,8 @@ uniqify() {
     local result=
     while [ -n "$1" ]; do
                case " ${result} " in
-                       *" $1 "*) ;;
-                       *) result="${result} $1" ;;
+                       *" $1 "*);;
+                       *) result="${result} $1";;
                esac
                shift
        done
@@ -94,24 +94,24 @@ uniqify() {
 
 for N in ${NEWSEARCH}; do
        case " ${NEWSL} " in
-               *" ${N%,*} "*) ;;
-               *) NEWSL="${NEWSL} ${N%,*}" ;;
+               *" ${N%,*} "*);;
+               *) NEWSL="${NEWSL} ${N%,*}";;
        esac
        case "\n${NEWRESOLV}\n" in
-               *"\nnameserver ${N#*,}\n"*) ;;
-               *) NEWRESOLV="${NEWRESOLV}nameserver ${N#*,}\n" ;;
+               *"\nnameserver ${N#*,}\n"*);;
+               *) NEWRESOLV="${NEWRESOLV}nameserver ${N#*,}\n";;
        esac
 done
 for N in ${NEWNS}; do
        case "\n${NEWRESOLV}\n" in
-               *"\nnameserver ${N}\n") ;;
-               *) NEWRESOLV="${NEWRESOLV}nameserver ${N}\n" ;;
+               *"\nnameserver ${N}\n");;
+               *) NEWRESOLV="${NEWRESOLV}nameserver ${N}\n";;
        esac
 done
 [ -n "${NEWSL}" ] && NEWRESOLV="${NEWRESOLV}search${NEWSL}\n"
 
 DBUSDEST=
-for DN in $(uniqify ${NEWDOMAIN}) ; do
+for DN in $(uniqify ${NEWDOMAIN}); do
        if [ "${DBUS}" = "yes" ]; then
                IP=${DN#*,}
                SIFS=${IFS-y} OIFS=$IFS
diff --git a/libc.in b/libc.in
index 83d25191a0ff7d34a13dfc493efecc5aef101e44..9611402125f541137e0b01a2f665dd66b4095fa5 100755 (executable)
--- a/libc.in
+++ b/libc.in
@@ -36,8 +36,8 @@ uniqify() {
     local result=
     while [ -n "$1" ]; do
                case " ${result} " in
-                       *" $1 "*) ;;
-                       *) result="${result} $1" ;;
+                       *" $1 "*);;
+                       *) result="${result} $1";;
                esac
                shift
        done
@@ -64,7 +64,7 @@ for N in ${OUR_NS}; do
        NS="${NS} ${N}"
        [ "${i}" = "3" ] && break
        case "${N}" in
-               127.*) LOCALH=true; break ;;
+               127.*) LOCALH=true; break;;
        esac
 done
 
@@ -74,7 +74,7 @@ done
 # ones. This means we prefer search then domain, otherwise, we use them in
 # the order given to us.
 OUR_SEARCH=
-if ${LOCALH} ; then
+if ${LOCALH}; then
        if [ -e "${BASE}" ]; then
                OUR_SEARCH="$(sed -n -e 's/^[[:space:]]*search[[:space:]]*//p' "${BASE}")"
        fi
index 91ebc8cd8d5ee4ee8c30307cf4b35f34ce9f1580..d002e1e4110b1516d5d872c00f387748cda8cf5d 100755 (executable)
--- a/named.in
+++ b/named.in
@@ -68,13 +68,13 @@ NEWZONES="${NEWOPTIONS}"
 FORWARD=
 for N in ${NEWSEARCH}; do
        case "${FORWARD}" in
-               *"\n\t${N#*,};"*) ;;
+               *"\n\t${N#*,};"*);;
                *) FORWARD="${FORWARD}\n\t${N#*,};";;
        esac
 done
 for N in ${NEWNS}; do
        case "${FORWARD}" in
-               *"\n\t${N};"*) ;;
+               *"\n\t${N};"*);;
                *) FORWARD="${FORWARD}\n\t${N};";;
        esac
 done
@@ -86,7 +86,7 @@ LASTDN=
 ZONES=
 for DN in $(printf "%s\n" ${NEWDOMAIN} | sort -u); do
        case "${LASTDN}" in
-               "${DN%,*}") ;;
+               "${DN%,*}");;
                *)
                [ -n "${ZONES}" ] && ZONES="${NEWZONES}\n\t};\n};\n"
                ZONES="${ZONES}\nzone \"${DN%,*}\" {\n"
index 52b30d6964318d927535b6b219bd9e466eb395bb..274a8bf8de36d6f279af93de5d20c9fc7e312fc9 100755 (executable)
@@ -75,8 +75,8 @@ uniqify() {
     local result=
     while [ -n "$1" ]; do
                case " ${result} " in
-                       *" $1 "*) ;;
-                       *) result="${result} $1" ;;
+                       *" $1 "*);;
+                       *) result="${result} $1";;
                esac
                shift
        done
@@ -188,7 +188,7 @@ if [ "x${CMD}" = "x-v" ]; then
                case "${LINE}" in
                        "nameserver "*)
                                case "${LINE#* }" in
-                                       127.*) continue ;;
+                                       127.*) continue;;
                                esac
                                NS="${NS}${LINE#* } "
                                ;;
@@ -253,12 +253,12 @@ fi
 if [ "x${CMD}" = "x-a" ]; then
        for x in '/' \\ ' ' '*'; do
                case "${IFACE}" in
-                       *[${x}]*) error_exit "${x} not allowed in interface name" ;;
+                       *[${x}]*) error_exit "${x} not allowed in interface name";;
                esac
        done
        for x in '.' '-' '~'; do
                case "${IFACE}" in
-                       [${x}]*) error_exit "${x} not allowed at start of interface name" ;;
+                       [${x}]*) error_exit "${x} not allowed at start of interface name";;
                esac
        done
        [ "x${CMD}" = "x-a" -a -t 0 ] && error_exit "No file given via stdin"