summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2000-09-16 13:43:00 +0000
committerphk <phk@FreeBSD.org>2000-09-16 13:43:00 +0000
commitfc5495e38e718593b4b118d08cfd5bfaaec0324e (patch)
tree288e533daff3fc8bb716c9d5d094e36bb94cc3bc /lib
parentd927c81a820d92ba849c803c943f34c82608d3f2 (diff)
downloadFreeBSD-src-fc5495e38e718593b4b118d08cfd5bfaaec0324e.zip
FreeBSD-src-fc5495e38e718593b4b118d08cfd5bfaaec0324e.tar.gz
Turn dkcksum() into an __inline function.
Change its type to u_int_16_t.
Diffstat (limited to 'lib')
-rw-r--r--lib/libdisk/Makefile3
-rw-r--r--lib/libdisk/libdisk.h1
-rw-r--r--lib/libstand/stand.h1
3 files changed, 1 insertions, 4 deletions
diff --git a/lib/libdisk/Makefile b/lib/libdisk/Makefile
index 3711085..0916c46 100644
--- a/lib/libdisk/Makefile
+++ b/lib/libdisk/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$
LIB= disk
-SRCS= blocks.c disklabel.c dkcksum.c chunk.c disk.c change.c \
+SRCS= blocks.c disklabel.c chunk.c disk.c change.c \
create_chunk.c rules.c write_disk.c
INCS= libdisk.h
@@ -10,7 +10,6 @@ CFLAGS+= -Wall
CFLAGS+= -DPC98
.endif
CLEANFILES+= tmp.c tst01 tst01.o
-VPATH= ${.CURDIR}/../../sbin/disklabel
NOPROFILE= yes
NOSHARED= yes
NOPIC= yes
diff --git a/lib/libdisk/libdisk.h b/lib/libdisk/libdisk.h
index 34646dd..0a33717 100644
--- a/lib/libdisk/libdisk.h
+++ b/lib/libdisk/libdisk.h
@@ -265,7 +265,6 @@ int Add_Chunk(struct disk *, long, u_long, const char *, chunk_e, int, u_long);
void * read_block(int, daddr_t);
void write_block(int fd, daddr_t block, void *foo);
struct disklabel * read_disklabel(int, daddr_t);
-u_short dkcksum(struct disklabel *);
struct chunk * Find_Mother_Chunk(struct chunk *, u_long, u_long, chunk_e);
struct disk * Int_Open_Disk(const char *name, u_long size);
void Fixup_Names(struct disk *);
diff --git a/lib/libstand/stand.h b/lib/libstand/stand.h
index e48565a..b3d7c41 100644
--- a/lib/libstand/stand.h
+++ b/lib/libstand/stand.h
@@ -212,7 +212,6 @@ extern void free_region(void *start, void *end);
/* disklabel support (undocumented, may be junk) */
struct disklabel;
extern char *getdisklabel(const char *, struct disklabel *);
-extern int dkcksum(struct disklabel *);
extern int printf(const char *fmt, ...);
extern void vprintf(const char *fmt, _BSD_VA_LIST_);
OpenPOWER on IntegriCloud