]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib/caputils: use lib/procfs.c
authorKarel Zak <kzak@redhat.com>
Tue, 7 Sep 2021 15:38:04 +0000 (17:38 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 6 Oct 2021 09:01:54 +0000 (11:01 +0200)
lib/caputils.c

index 13a376bfce24adae37b8372671f8181e9944fa9c..987533a34392e9443852430d969327f0f91bc120 100644 (file)
@@ -22,8 +22,8 @@
 
 #include "c.h"
 #include "caputils.h"
-#include "procutils.h"
 #include "pathnames.h"
+#include "procfs.h"
 
 static int test_cap(unsigned int cap)
 {
@@ -58,7 +58,7 @@ static int cap_last_by_procfs(int *ret)
 
        *ret = 0;
 
-       if (f && proc_is_procfs(fileno(f))) {
+       if (f && fd_is_procfs(fileno(f))) {
                int cap;
 
                /* we check if the cap after this one really isn't valid */