]> Zhao Yanbai Git Server - minix.git/commitdiff
Revert "libutil: add getmaxpartitions() implementation" 11/3311/1
authorJean-Baptiste Boric <jblbeurope@gmail.com>
Sun, 13 Mar 2016 18:30:35 +0000 (19:30 +0100)
committerDavid van Moolenbroek <david@minix3.org>
Sun, 13 Mar 2016 19:51:58 +0000 (19:51 +0000)
This reverts commit 22ad44d6a9fa80d47806bf1897394569b6c15b8a.

With the MIB service implemented, this hack is no longer necessary.

Change-Id: Ic969c2dcecd6fc9ce283d1dda6518796869875e3

lib/libutil/Makefile
minix/lib/libutil/Makefile.inc [deleted file]
minix/lib/libutil/getmaxpartitions.c [deleted file]

index de36cd6edc23706cb200698368e08602cb77335d..af15de72776b9481053667669ab43922e6694f85 100644 (file)
@@ -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 (file)
index 9de8350..0000000
+++ /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 (file)
index d154204..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#include <machine/partition.h>
-
-int getmaxpartitions(void)
-{
-       return NR_PARTITIONS;
-}