chiark / gitweb /
cleanup: Fix extraneous whitespace throughout.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 28 Jan 2007 14:35:00 +0000 (14:35 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 28 Jan 2007 14:35:00 +0000 (14:35 +0000)
20 files changed:
Makefile
MdwOpt.pm
buf.1
cdb-assign
cdb-list
cdb-list.1
cdb-map
check-sender.1
debian/changelog
debian/rules
gorp.1
gorp.c
inplace.1
locking.c
pause.c
qmail-checkspam.c
shadowfix
stamp.1
stamp.c
z.1

index dcfbc3905913a05d868ccf1aef5d2bbc440301fe..f235f0edec4d843c024701402183d48e22bbe76d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -36,7 +36,7 @@ LD = gcc
 CFLAGS = -O2 -g -pedantic -Wall -DVERSION=\"$(VERSION)\"
 LINK = $(LD) $(LDFLAGS) -o $@ $^
 
 CFLAGS = -O2 -g -pedantic -Wall -DVERSION=\"$(VERSION)\"
 LINK = $(LD) $(LDFLAGS) -o $@ $^
 
-INST = 
+INST =
 prefix = /usr/local
 bindir = $(prefix)/bin
 sbindir = $(prefix)/sbin
 prefix = /usr/local
 bindir = $(prefix)/bin
 sbindir = $(prefix)/sbin
index b268c15ea2da676e05dbeff566b0ed0e9a38771a..6ee8112f5f1b1ebdbde64512ed8be33c54b83f0c 100644 (file)
--- a/MdwOpt.pm
+++ b/MdwOpt.pm
@@ -39,7 +39,7 @@ require Exporter;
 #              routine, although the interface is rather different, since it
 #              takes advantage of some of Perl's object-oriented features.
 #
 #              routine, although the interface is rather different, since it
 #              takes advantage of some of Perl's object-oriented features.
 #
-#              
+#
 #          How options parsing appears to users
 #
 #              A command line consists of a number of `words' (which may
 #          How options parsing appears to users
 #
 #              A command line consists of a number of `words' (which may
@@ -166,7 +166,7 @@ require Exporter;
 #              permute         Force permuting of the argument list
 #              inorder         Read options in order
 #              posix           Force use of POSIX option semantics
 #              permute         Force permuting of the argument list
 #              inorder         Read options in order
 #              posix           Force use of POSIX option semantics
-#              quiet           Don't report errors when they happen    
+#              quiet           Don't report errors when they happen
 
 sub new
 {
 
 sub new
 {
@@ -382,7 +382,7 @@ sub read
 
   ($opt,$self->{this})=(substr($self->{this},0,1),substr($self->{this},1));
   $prefix=($self->{flags}{_neg} ? '+' : '-');
 
   ($opt,$self->{this})=(substr($self->{this},0,1),substr($self->{this},1));
   $prefix=($self->{flags}{_neg} ? '+' : '-');
-  
+
   if ($self->{short} =~ /\Q$opt/ &&
       (!$self->{flags}{_neg} || substr($',0,1) eq '+'))
   {
   if ($self->{short} =~ /\Q$opt/ &&
       (!$self->{flags}{_neg} || substr($',0,1) eq '+'))
   {
@@ -401,7 +401,7 @@ sub read
        return ('?',$self->err("option `$prefix$opt' requires an argument"))
          unless defined($arg);
       }
        return ('?',$self->err("option `$prefix$opt' requires an argument"))
          unless defined($arg);
       }
-    }  
+    }
 
     $opt.='+' if $self->{flags}{_neg};
     return ($opt,$arg);
 
     $opt.='+' if $self->{flags}{_neg};
     return ($opt,$arg);
diff --git a/buf.1 b/buf.1
index 021aabe11f5e8b77ef93d731f8c779cf54f5d638..e5004f1b7640b54593059a93f6af37a47fbb8f39 100644 (file)
--- a/buf.1
+++ b/buf.1
@@ -20,7 +20,7 @@ buf \- buffer stdin to a file
 .SH DESCRIPTION
 The
 .B buf
 .SH DESCRIPTION
 The
 .B buf
-program writes standard input to a temporary file.  It then runs 
+program writes standard input to a temporary file.  It then runs
 .VS
 .IR "command arguments " ... " stdinfile"
 .VE
 .VS
 .IR "command arguments " ... " stdinfile"
 .VE
index 686d0f71b8cbfd2f81b3a9847f3926ee0d6ae61a..18051b1c73d34a5316aab8a3d2e0d856089f6c35 100755 (executable)
@@ -6,7 +6,7 @@ from sys import argv, stdin, stderr, exit
 
 ego = r_sub(r'^.*[/\\]', '', argv[0])
 def die(msg, prefix = True):
 
 ego = r_sub(r'^.*[/\\]', '', argv[0])
 def die(msg, prefix = True):
-  if prefix: msg ='%s: %s' % (ego, msg) 
+  if prefix: msg ='%s: %s' % (ego, msg)
   print >>stderr, msg
   exit(1)
 
   print >>stderr, msg
   exit(1)
 
@@ -16,9 +16,9 @@ def files(args):
   else:
     for a in args:
       if a == '-':
   else:
     for a in args:
       if a == '-':
-        yield stdin
+       yield stdin
       else:
       else:
-        yield open(a, 'r')
+       yield open(a, 'r')
 
 if len(argv) < 2:
   die('usage: %s CDB [INPUT ...]' % ego, False)
 
 if len(argv) < 2:
   die('usage: %s CDB [INPUT ...]' % ego, False)
index ee85a1483617b24632a96e0811a43a8c4e667fb9..1a18f326277a237f0aded880d05177f669447f21 100755 (executable)
--- a/cdb-list
+++ b/cdb-list
@@ -6,7 +6,7 @@ from sys import argv, stdin, stderr, exit
 
 ego = r_sub(r'^.*[/\\]', '', argv[0])
 def die(msg, prefix = True):
 
 ego = r_sub(r'^.*[/\\]', '', argv[0])
 def die(msg, prefix = True):
-  if prefix: msg ='%s: %s' % (ego, msg) 
+  if prefix: msg ='%s: %s' % (ego, msg)
   print >>stderr, msg
   exit(1)
 
   print >>stderr, msg
   exit(1)
 
@@ -16,9 +16,9 @@ def files(args):
   else:
     for a in args:
       if a == '-':
   else:
     for a in args:
       if a == '-':
-        yield stdin
+       yield stdin
       else:
       else:
-        yield open(a, 'r')
+       yield open(a, 'r')
 
 if len(argv) < 2:
   die('usage: %s CDB [INPUT ...]' % ego, False)
 
 if len(argv) < 2:
   die('usage: %s CDB [INPUT ...]' % ego, False)
index 9cc6d4ce637e25671d2806902a700cd740926ae4..c2cefd84f5095e72e814afe7d9eca7e683a711ba 100644 (file)
@@ -16,7 +16,7 @@ Comments and blank lines in the inputs are ignored.  Each other line
 .I line
 causes an entry to be inserted into the BDB, whose key is
 .I line
 .I line
 causes an entry to be inserted into the BDB, whose key is
 .I line
-with leading and trailing spaces stripped, and whose value is empty.  
+with leading and trailing spaces stripped, and whose value is empty.
 .PP
 The CDB file is written to
 .IB cdb .new
 .PP
 The CDB file is written to
 .IB cdb .new
diff --git a/cdb-map b/cdb-map
index f230a427b0f9b087d7eaf63ecfccdada202b8417..684005ddc51ece2f6a65cbfc5e893359dd4c0c29 100755 (executable)
--- a/cdb-map
+++ b/cdb-map
@@ -6,7 +6,7 @@ from sys import argv, stdin, stderr, exit
 
 ego = r_sub(r'^.*[/\\]', '', argv[0])
 def die(msg, prefix = True):
 
 ego = r_sub(r'^.*[/\\]', '', argv[0])
 def die(msg, prefix = True):
-  if prefix: msg ='%s: %s' % (ego, msg) 
+  if prefix: msg ='%s: %s' % (ego, msg)
   print >>stderr, msg
   exit(1)
 
   print >>stderr, msg
   exit(1)
 
@@ -16,9 +16,9 @@ def files(args):
   else:
     for a in args:
       if a == '-':
   else:
     for a in args:
       if a == '-':
-        yield stdin
+       yield stdin
       else:
       else:
-        yield open(a, 'r')
+       yield open(a, 'r')
 
 if len(argv) < 2:
   die('usage: %s CDB [INPUT ...]' % ego, False)
 
 if len(argv) < 2:
   die('usage: %s CDB [INPUT ...]' % ego, False)
index 7e972f8538c4e677b7a912c7a297cf06b592f39c..948d041e467fa49153d55d27fefa0c3bd01fc95b 100644 (file)
@@ -7,7 +7,7 @@ check-sender \- check an envelope sender's domain in a CDB file
 .B .qmail
 file)
 .br
 .B .qmail
 file)
 .br
-.B |check-sender 
+.B |check-sender
 .BI < cdb
 .SH DESCRIPTION
 If the domain part of the email address in the
 .BI < cdb
 .SH DESCRIPTION
 If the domain part of the email address in the
index 9773ddecc8d81451f4b9f566eed355c703f74d7d..6e2bae85033d350b02b36677a473fe10e6046d3c 100644 (file)
@@ -4,7 +4,7 @@ nsict-utils (1.1.1) experimental; urgency=low
   * Fix splitconf documentation to be right.
   * Fix gorp to produce base32 (ugh!) and safe64 output.
 
   * Fix splitconf documentation to be right.
   * Fix gorp to produce base32 (ugh!) and safe64 output.
 
- -- Mark Wooding <mdw@nsict.org>  Sat,  5 Feb 2005 10:39:52 +0000
+ -- Mark Wooding <mdw@nsict.org>  Sat, 5 Feb 2005 10:39:52 +0000
 
 nsict-utils (1.1.0) experimental; urgency=low
 
 
 nsict-utils (1.1.0) experimental; urgency=low
 
@@ -14,7 +14,7 @@ nsict-utils (1.1.0) experimental; urgency=low
  -- Mark Wooding <mdw@nsict.org>  Tue, 18 Nov 2003 18:47:21 +0000
 
 nsict-utils (1.0) experimental; urgency=low
  -- Mark Wooding <mdw@nsict.org>  Tue, 18 Nov 2003 18:47:21 +0000
 
 nsict-utils (1.0) experimental; urgency=low
-  
+
   * Debianization!
   * Debianization!
-  
+
  -- Mark Wooding <mdw@nsict.org>  Tue, 18 Nov 2003 13:48:03 +0000
  -- Mark Wooding <mdw@nsict.org>  Tue, 18 Nov 2003 13:48:03 +0000
index 80aed10d49e62246ea0478088367f07d3866310a..744cdfad4d96737506f50a24c9a74715213c45d6 100755 (executable)
@@ -19,7 +19,7 @@ install: build
        done <debian/inst
        mkdir -p debian/nsict-utils
 
        done <debian/inst
        mkdir -p debian/nsict-utils
 
-binary-indep: 
+binary-indep:
        dh_testdir -i
        dh_testroot -i
        dh_compress -i
        dh_testdir -i
        dh_testroot -i
        dh_compress -i
@@ -56,4 +56,4 @@ source:
        d=`pwd`; cd ..; dpkg-source -i -b $$d/=inst=/=deb=/*
        rm -rf =inst=
 
        d=`pwd`; cd ..; dpkg-source -i -b $$d/=inst=/=deb=/*
        rm -rf =inst=
 
-.PHONY: binary binary-arch binary-indep clean install source 
+.PHONY: binary binary-arch binary-indep clean install source
diff --git a/gorp.1 b/gorp.1
index ac3d02adbe6989e0b5a501642a7f089959e700a7..69bb892a2dcced1baa7284afd793ceef8b1195eb 100644 (file)
--- a/gorp.1
+++ b/gorp.1
@@ -34,7 +34,7 @@ Prints the random string using the chosen output
 .IR format ,
 which may be
 .B base64
 .IR format ,
 which may be
 .B base64
-(standard Base64 encoding, as described in RFC2045; this is the default), 
+(standard Base64 encoding, as described in RFC2045; this is the default),
 .B file64
 (Base64 encoding, with
 .RB ` % '
 .B file64
 (Base64 encoding, with
 .RB ` % '
diff --git a/gorp.c b/gorp.c
index 81b4608d8c425c56f9ffddb60fc9a5a3459f6415..d5ce481ae9a3be6bb589ca3a0558ac77f65d957b 100644 (file)
--- a/gorp.c
+++ b/gorp.c
@@ -48,7 +48,7 @@ static void do_format(size_t n, unsigned line, void *ctx,
   }
   if (fix) fix(d.buf, d.len);
   DPUTC(&d, '\n');
   }
   if (fix) fix(d.buf, d.len);
   DPUTC(&d, '\n');
-  DWRITE(&d, stdout);  
+  DWRITE(&d, stdout);
 }
 
 static void do_base64(void *ctx, char *p, size_t sz, dstr *d)
 }
 
 static void do_base64(void *ctx, char *p, size_t sz, dstr *d)
@@ -65,7 +65,7 @@ static void do_format_base64(size_t n, unsigned line,
 }
 static void format_base64(size_t n, unsigned line)
   { do_format_base64(n, line, 0); }
 }
 static void format_base64(size_t n, unsigned line)
   { do_format_base64(n, line, 0); }
-  
+
 static void do_base32(void *ctx, char *p, size_t sz, dstr *d)
   { base32_encode(ctx, p, sz, d); }
 static void format_base32(size_t n, unsigned line)
 static void do_base32(void *ctx, char *p, size_t sz, dstr *d)
   { base32_encode(ctx, p, sz, d); }
 static void format_base32(size_t n, unsigned line)
index a5b4d506f14549c1098ac09bc4cab8a89c2be27b..eaebe9d92acf46a3c6fb3aaea86265e197ecf66f 100644 (file)
--- a/inplace.1
+++ b/inplace.1
@@ -34,7 +34,7 @@ with standard input redirected from
 and redirecting standard output to
 .IR file \c
 .BR .new .
 and redirecting standard output to
 .IR file \c
 .BR .new .
-If all these programs are successful, then each 
+If all these programs are successful, then each
 .I file
 is copied to
 .IB file .old
 .I file
 is copied to
 .IB file .old
@@ -44,7 +44,7 @@ renamed to
 .IR file ;
 the
 .IB file .old
 .IR file ;
 the
 .IB file .old
-files are then deleted.  If something went wrong, the 
+files are then deleted.  If something went wrong, the
 .IB file .new
 files are all deleted and the original
 .IR file s
 .IB file .new
 files are all deleted and the original
 .IR file s
index cd4e81d898eb06e011d43ddeea2038b0811af392..f486ea4302b30aaf7538b876c572471182332b05 100644 (file)
--- a/locking.c
+++ b/locking.c
@@ -7,7 +7,7 @@
  * (c) 2003 Mark Wooding
  */
 
  * (c) 2003 Mark Wooding
  */
 
-/*----- Licensing notice --------------------------------------------------* 
+/*----- Licensing notice --------------------------------------------------*
  *
  * This file is part of the Toys utilties collection.
  *
  *
  * This file is part of the Toys utilties collection.
  *
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
- * 
+ *
  * Toys is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * Toys is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU General Public License
  * along with Toys; if not, write to the Free Software Foundation,
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  * You should have received a copy of the GNU General Public License
  * along with Toys; if not, write to the Free Software Foundation,
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
diff --git a/pause.c b/pause.c
index fd688e52d95467a6a282265d9c408310425810a5..f182c099e25bcb9ce77f8516e061d040874c09be 100644 (file)
--- a/pause.c
+++ b/pause.c
@@ -7,7 +7,7 @@
  * (c) 1999 Mark Wooding
  */
 
  * (c) 1999 Mark Wooding
  */
 
-/*----- Licensing notice --------------------------------------------------* 
+/*----- Licensing notice --------------------------------------------------*
  *
  * This file is part of Pause.
  *
  *
  * This file is part of Pause.
  *
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later ersion.
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later ersion.
- * 
+ *
  * Pause is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * Pause is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU General Public License
  * along with Pause; if not, write to the Free Software Foundation,
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  * You should have received a copy of the GNU General Public License
  * along with Pause; if not, write to the Free Software Foundation,
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
@@ -192,7 +192,7 @@ int main(int argc, char *argv[])
       case 'h': t *= 60;
       case 'm': t *= 60;
       case 's':        if (q[1] != 0)
       case 'h': t *= 60;
       case 'm': t *= 60;
       case 's':        if (q[1] != 0)
-      default:    t = 0;
+      default:   t = 0;
       case 0:  break;
     }
     if (t <= 0)
       case 0:  break;
     }
     if (t <= 0)
index 9f7411eb3cb5acbf1fa933b739594786d6eda457..849d6ed0264ad81b6cf90184f8d2d1795b34eb9a 100644 (file)
@@ -7,18 +7,18 @@
  * (c) 2003 Mark Wooding
  */
 
  * (c) 2003 Mark Wooding
  */
 
-/*----- Licensing notice --------------------------------------------------* 
+/*----- Licensing notice --------------------------------------------------*
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
- * 
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
index 3793a306cecbe5303dbf1a4cd93664cc2c21d38a..1c5e4b60bfbf8de553ac325621835b4676507cbe 100755 (executable)
--- a/shadowfix
+++ b/shadowfix
@@ -266,7 +266,7 @@ sub unlockfile {
   }
 
   # --- Move the old file out of the way ---
   }
 
   # --- Move the old file out of the way ---
-  
+
   !-e $file or rename("${file}", "${file}-") or do {
     unlink "${file}.lock";
     unlink "${file}.edit";
   !-e $file or rename("${file}", "${file}-") or do {
     unlink "${file}.lock";
     unlink "${file}.edit";
@@ -348,7 +348,7 @@ while ($line = $gr->getline) {
   $#f = 3;
   $a = { data => [ @f ],
         members => { hashify(split /,/, $f[3]) },
   $#f = 3;
   $a = { data => [ @f ],
         members => { hashify(split /,/, $f[3]) },
-         name => $f[0], gid => $f[2] };
+        name => $f[0], gid => $f[2] };
   $gbynam{$a->{name}} = $gbygid{$a->{gid}} = $a;
 }
 $gr->close;
   $gbynam{$a->{name}} = $gbygid{$a->{gid}} = $a;
 }
 $gr->close;
@@ -508,7 +508,7 @@ for $g (values %gbynam) {
     # --- Check that the group's administrators exist ---
 
     if ($sg->{data}[2] ne "" && !$suyb) {
     # --- Check that the group's administrators exist ---
 
     if ($sg->{data}[2] ne "" && !$suyb) {
-      my @admins = 
+      my @admins =
       my $admin;
       foreach $admin (split(/,/, $sg->{data}[2])) {
        exists $ubynam{$admin} or
       my $admin;
       foreach $admin (split(/,/, $sg->{data}[2])) {
        exists $ubynam{$admin} or
diff --git a/stamp.1 b/stamp.1
index 5cbe9f0e74fbc4d31b32de4165a5c87051a5aec3..fb55cafcb1a00234eeeadba6bcf31aca498a6124 100644 (file)
--- a/stamp.1
+++ b/stamp.1
@@ -31,9 +31,9 @@ Show usage message for
 .BR stamp .
 .TP
 .BI "\-f, \-\-format=" format
 .BR stamp .
 .TP
 .BI "\-f, \-\-format=" format
-Use 
+Use
 .I format
 .I format
-as the 
+as the
 .BR strftime (3)
 format string for the datestamps.  Note that if the datestamp is meant
 to be separated from the rest of the line by anything, then that
 .BR strftime (3)
 format string for the datestamps.  Note that if the datestamp is meant
 to be separated from the rest of the line by anything, then that
diff --git a/stamp.c b/stamp.c
index a5655a6b866dbfc1e1f4ef0e038339b00a103a97..28eca79c809a350812cd9b494324b590421831ad 100644 (file)
--- a/stamp.c
+++ b/stamp.c
@@ -135,4 +135,4 @@ int main(int argc, char *argv[])
   }
 
   return ((f & F_BOGUS) ? EXIT_FAILURE : 0);
   }
 
   return ((f & F_BOGUS) ? EXIT_FAILURE : 0);
-}      
+}
diff --git a/z.1 b/z.1
index 05f64d852824d9b8b12c561ed90b5808ffbeab81..918f97f62e560d662c3f2a7d6b62e31f2cbb0365 100644 (file)
--- a/z.1
+++ b/z.1
@@ -31,6 +31,6 @@ The decompressed versions of files are always created with default
 owner, group and permissions (as set by the current euid, egid and umask
 settings).
 .PP
 owner, group and permissions (as set by the current euid, egid and umask
 settings).
 .PP
-It doesn't leave file extensions on the decompressed files. 
+It doesn't leave file extensions on the decompressed files.
 .SH AUTHOR
 Mark Wooding <mdw@distorted.org.uk>
 .SH AUTHOR
 Mark Wooding <mdw@distorted.org.uk>