caps: missing static function declarator
authorRobert Swiecki <robert@swiecki.net>
Fri, 29 Sep 2017 22:37:06 +0000 (00:37 +0200)
committerRobert Swiecki <robert@swiecki.net>
Fri, 29 Sep 2017 22:37:06 +0000 (00:37 +0200)
caps.c
contain.h

diff --git a/caps.c b/caps.c
index de47a4b94eb94afc0c7600c4461f9872e44b6e17..104919d69baee7a8a96c54146f5c57bb15dd9c8b 100644 (file)
--- a/caps.c
+++ b/caps.c
@@ -168,7 +168,7 @@ static void capsSetInheritable(cap_user_data_t cap_data, unsigned int cap)
 #define PR_CAP_AMBIENT 47
 #define PR_CAP_AMBIENT_RAISE 2
 #endif                         /* !defined(PR_CAP_AMBIENT) */
-bool CapsInitNsKeepCaps(cap_user_data_t cap_data)
+static bool CapsInitNsKeepCaps(cap_user_data_t cap_data)
 {
        char dbgmsg[4096];
 
@@ -190,9 +190,9 @@ bool CapsInitNsKeepCaps(cap_user_data_t cap_data)
                if (capsGetPermitted(cap_data, capNames[i].val) == false) {
                        continue;
                }
-               if (prctl
-                   (PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, (unsigned long)capNames[i].val, 0UL,
-                    0UL) == -1) {
+               if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, (unsigned long)capNames[i].val, 0UL,
+                         0UL)
+                   == -1) {
                        PLOG_W("prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, %s)", capNames[i].name);
                } else {
                        utilSSnPrintf(dbgmsg, sizeof(dbgmsg), " %s", capNames[i].name);
index edba108cc362850dd01c305132d0457356fea549..31c871484107992321a32c756444e3330d0f3d7d 100644 (file)
--- a/contain.h
+++ b/contain.h
@@ -26,7 +26,7 @@
 
 #include "common.h"
 
-bool containSetupFD(struct nsjconf_t *nsjconf, int fd_in, int fd_out, int fd_err);
+bool containSetupFD(struct nsjconf_t * nsjconf, int fd_in, int fd_out, int fd_err);
 bool containContain(struct nsjconf_t *nsjconf);
 
 #endif                         /* NS_CONTAIN_H */