diff options
author | phk <phk@FreeBSD.org> | 2000-09-16 13:43:00 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2000-09-16 13:43:00 +0000 |
commit | fc5495e38e718593b4b118d08cfd5bfaaec0324e (patch) | |
tree | 288e533daff3fc8bb716c9d5d094e36bb94cc3bc /lib/libdisk | |
parent | d927c81a820d92ba849c803c943f34c82608d3f2 (diff) | |
download | FreeBSD-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/libdisk')
-rw-r--r-- | lib/libdisk/Makefile | 3 | ||||
-rw-r--r-- | lib/libdisk/libdisk.h | 1 |
2 files changed, 1 insertions, 3 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 *); |