[PATCH] sulogin: remove duplicate const declaration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



login-utils/su-common.c:619:14: warning: duplicate 'const' declaration
specifier [-Wduplicate-decl-specifier]
   const char const **args = xcalloc (n_args, sizeof *args);

Regression-from: 71f207a5f598623a539ba825b97a503072c4a1b4
Signed-off-by: Sami Kerola <kerolasa@xxxxxx>
---
 login-utils/su-common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/login-utils/su-common.c b/login-utils/su-common.c
index 32f3641ba..0999795c8 100644
--- a/login-utils/su-common.c
+++ b/login-utils/su-common.c
@@ -616,7 +616,7 @@ run_shell (char const * const shell, char const * const command, char ** const a
 	   const size_t n_additional_args)
 {
   const size_t n_args = 1 + fast_startup + 2 * !!command + n_additional_args + 1;
-  const char const **args = xcalloc (n_args, sizeof *args);
+  const char **args = xcalloc (n_args, sizeof *args);
   size_t argno = 1;
 
   if (simulate_login)
-- 
2.13.0

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux