bcopy and bzero don't return any value
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 2 Apr 1989 05:32:54 +0000 (21:32 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 2 Apr 1989 05:32:54 +0000 (21:32 -0800)
SCCS-vsn: lib/libc/string/bcopy.c 5.4
SCCS-vsn: lib/libc/string/bzero.c 5.3

usr/src/lib/libc/string/bcopy.c
usr/src/lib/libc/string/bzero.c

index 39e92cc..1d11a7a 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)bcopy.c    5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)bcopy.c    5.4 (Berkeley) %G%";
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/types.h>
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/types.h>
@@ -54,5 +54,4 @@ bcopy(src, dst, length)
                                while (--length);
                        }
                }
                                while (--length);
                        }
                }
-       return(0);
 }
 }
index f896777..dd2b0a3 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)bzero.c    5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)bzero.c    5.3 (Berkeley) %G%";
 #endif /* LIBC_SCCS and not lint */
 
 /*
 #endif /* LIBC_SCCS and not lint */
 
 /*
@@ -27,9 +27,6 @@ bzero(b, length)
        register int length;
 {
 
        register int length;
 {
 
-       if (length)
-               do
-                       *b++ = '\0';
-               while (--length);
-       return(length);
+       while (length--)
+               *b++ = '\0';
 }
 }