]> diplodocus.org Git - nmh/blobdiff - sbr/snprintb.c
new.c: Order two return statements to match comment.
[nmh] / sbr / snprintb.c
index 0f46b353ec0c1be143c172c65ad9928466633c14..47aea95ff971b5bf3f1548bcf6c35e9c678939eb 100644 (file)
@@ -1,6 +1,4 @@
-
-/*
- * snprintb.c -- snprintf a %b string
+/* snprintb.c -- snprintf a %b string
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -14,8 +12,8 @@ char *
 snprintb (char *buffer, size_t n, unsigned v, char *bits)
 {
     size_t len;
 snprintb (char *buffer, size_t n, unsigned v, char *bits)
 {
     size_t len;
-    register int i, j;
-    register char c, *bp;
+    int i, j;
+    char c, *bp;
 
     snprintf (buffer, n, bits && *bits == 010 ? "0%o" : "0x%x", v);
     len = strlen(buffer);
 
     snprintf (buffer, n, bits && *bits == 010 ? "0%o" : "0x%x", v);
     len = strlen(buffer);