Fix build break introduced by previous commit. 64/19264/1
authorBartlomiej Grzelewski <b.grzelewski@samsung.com>
Wed, 9 Apr 2014 13:16:14 +0000 (15:16 +0200)
committerBartlomiej Grzelewski <b.grzelewski@samsung.com>
Wed, 9 Apr 2014 13:21:38 +0000 (15:21 +0200)
[Bug]      Last commit left unused parameters in api without marked them
           as unused.
[Cause]    N/A
[Solution] Add all unused parameteres with __attribute__((unused))

[Verificaiton] N/A

Change-Id: I1c035ae968367be778c8ba725e9000d07df078c2

src/server/client/client-common.h
src/server/client/client-cookie.cpp
src/server/client/client-privilege-by-pid.cpp
src/server/client/client-socket-privilege.cpp

index ff494b4fdefcd74a176abb1b0af814274dce518c..9c701c570f6166011b8187bde553e50110e13041 100644 (file)
@@ -32,6 +32,7 @@
 #include <message-buffer.h>
 
 #define SECURITY_SERVER_API __attribute__((visibility("default")))
+#define SECURITY_SERVER_UNUSED __attribute__((unused))
 
 extern "C" {
     struct msghdr;
index b2ca6ffd99960020878d0211fff6e6f8bc90448b..ca815144d9d90a6e93262039099afc4ceae3cda9 100644 (file)
@@ -207,7 +207,10 @@ int security_server_check_privilege(const char *cookie, gid_t privilege)
 }
 
 SECURITY_SERVER_API
-int security_server_check_privilege_by_cookie(const char *cookie, const char *object, const char *access_rights)
+int security_server_check_privilege_by_cookie(
+    const char *cookie        SECURITY_SERVER_UNUSED,
+    const char *object        SECURITY_SERVER_UNUSED,
+    const char *access_rights SECURITY_SERVER_UNUSED)
 {
 #if 0
     using namespace SecurityServer;
index 4c1c10d37dc81e07479f0ce028cfdad6e5763fdd..92ac0dcdef522937979e28f60094dabeb394526b 100644 (file)
 
 SECURITY_SERVER_API
 int security_server_check_privilege_by_pid(
-        int pid,
-        const char *object,
-        const char *access_rights) {
+    int pid                   SECURITY_SERVER_UNUSED,
+    const char *object        SECURITY_SERVER_UNUSED,
+    const char *access_rights SECURITY_SERVER_UNUSED)
+{
 #if 0
     using namespace SecurityServer;
     return try_catch([&] {
index 811178de840f984c7c4be2f58328888c6ead1736..b0157857938f47aecea777e14abd617a98796ff9 100644 (file)
 #include <security-server.h>
 
 SECURITY_SERVER_API
-int security_server_check_privilege_by_sockfd(int sockfd,
-                                              const char *object,
-                                              const char *access_rights)
+int security_server_check_privilege_by_sockfd(
+    int sockfd                SECURITY_SERVER_UNUSED,
+    const char *object        SECURITY_SERVER_UNUSED,
+    const char *access_rights SECURITY_SERVER_UNUSED)
 {
 #if 0
     char *subject = NULL;