From: Jean-Baptiste Boric Date: Sun, 13 Mar 2016 18:30:35 +0000 (+0100) Subject: Revert "libutil: add getmaxpartitions() implementation" X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=refs%2Fchanges%2F11%2F3311%2F1;p=minix.git Revert "libutil: add getmaxpartitions() implementation" This reverts commit 22ad44d6a9fa80d47806bf1897394569b6c15b8a. With the MIB service implemented, this hack is no longer necessary. Change-Id: Ic969c2dcecd6fc9ce283d1dda6518796869875e3 --- diff --git a/lib/libutil/Makefile b/lib/libutil/Makefile index de36cd6ed..af15de727 100644 --- a/lib/libutil/Makefile +++ b/lib/libutil/Makefile @@ -13,7 +13,7 @@ CPPFLAGS+=-DLIBC_SCCS -I${.CURDIR} LINTFLAGS+=-w SRCS+= efun.c \ \ - getfsspecname.c getmntopts.c \ + getfsspecname.c getmntopts.c getmaxpartitions.c \ \ \ login.c loginx.c login_cap.c login_tty.c logout.c logoutx.c \ @@ -35,10 +35,6 @@ MAN= efun.3 \ snprintb.3 sockaddr_snprintf.3 stat_flags.3 strpct.3 ttyaction.3 \ ttymsg.3 util.3 -.if defined(__MINIX) -.include "${NETBSDSRCDIR}/minix/lib/libutil/Makefile.inc" -.endif - YPREFIX=__pd .PATH: ${NETBSDSRCDIR}/lib/libc/gen diff --git a/minix/lib/libutil/Makefile.inc b/minix/lib/libutil/Makefile.inc deleted file mode 100644 index 9de835068..000000000 --- a/minix/lib/libutil/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -.PATH: ${NETBSDSRCDIR}/minix/lib/libutil - -SRCS+= getmaxpartitions.c \ No newline at end of file diff --git a/minix/lib/libutil/getmaxpartitions.c b/minix/lib/libutil/getmaxpartitions.c deleted file mode 100644 index d15420423..000000000 --- a/minix/lib/libutil/getmaxpartitions.c +++ /dev/null @@ -1,6 +0,0 @@ -#include - -int getmaxpartitions(void) -{ - return NR_PARTITIONS; -}