convert-from-bsd-to-posix-string-and-memory-functions-20010807
[openafs.git] / src / vfsck / utilities.c
index e5eb597..82750f6 100644 (file)
@@ -419,7 +419,7 @@ bread(fd, buf, blk, size)
 #endif
                rwerror("SEEK", blk);
        errs = 0;
-       bzero(buf, (int)size);
+       memset(buf, 0, (int)size);
        printf("THE FOLLOWING DISK SECTORS COULD NOT BE READ:");
 #ifdef AFS_SUN5_ENV
        for (cp = buf, i = 0; i < btodb(size); i++, cp += DEV_BSIZE) {
@@ -578,7 +578,7 @@ getpathname(namebuf, curdir, ino)
                strcpy(namebuf, "?");
                return;
        }
-       bzero((char *)&idesc, sizeof(struct inodesc));
+       memset((char *)&idesc, 0, sizeof(struct inodesc));
        idesc.id_type = DATA;
        cp = &namebuf[BUFSIZ - 1];
        *cp = '\0';
@@ -609,7 +609,7 @@ getpathname(namebuf, curdir, ino)
                cp -= len;
                if (cp < &namebuf[MAXNAMLEN])
                        break;
-               bcopy(namebuf, cp, len);
+               memcpy(cp, namebuf, len);
                *--cp = '/';
                ino = idesc.id_number;
        }
@@ -617,7 +617,7 @@ getpathname(namebuf, curdir, ino)
                strcpy(namebuf, "?");
                return;
        }
-       bcopy(cp, namebuf, &namebuf[BUFSIZ] - cp);
+       memcpy(namebuf, cp, &namebuf[BUFSIZ] - cp);
 }
 
 void