Re: duplicate const

2014-04-09 Fir de Conversatie Yukihiro Nakadaira
On Wed, Apr 9, 2014 at 4:09 AM, Bram Moolenaar  wrote:

>
> Yukihiro Nakadaira wrote:
>
> os_unix.c:
>   2818 static const char const *smack_copied_attributes[] =
> This should be
>   static const char *smack_copied_attributes[]
> or
>   static const char * const smack_copied_attributes[]
>
> Well, which one is it?


Maybe second one is intended.

diff -r dd44a527c2bd src/os_unix.c
--- a/src/os_unix.cSun Apr 06 21:34:04 2014 +0200
+++ b/src/os_unix.cWed Apr 09 19:44:49 2014 +0900
@@ -2815,7 +2815,7 @@
 char_u*from_file;
 char_u*to_file;
 {
-static const char const *smack_copied_attributes[] =
+static const char * const smack_copied_attributes[] =
 {
 XATTR_NAME_SMACK,
 XATTR_NAME_SMACKEXEC,

-- 
Yukihiro Nakadaira - yukihiro.nakada...@gmail.com

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: duplicate const

2014-04-08 Fir de Conversatie Bram Moolenaar

Yukihiro Nakadaira wrote:

os_unix.c:
  2818 static const char const *smack_copied_attributes[] =
This should be
  static const char *smack_copied_attributes[]
or
  static const char * const smack_copied_attributes[]

Well, which one is it?

-- 
Just remember...if the world didn't suck, we'd all fall off.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


duplicate const

2014-04-08 Fir de Conversatie Yukihiro Nakadaira
os_unix.c:
  2818 static const char const *smack_copied_attributes[] =
This should be
  static const char *smack_copied_attributes[]
or
  static const char * const smack_copied_attributes[]

-- 
Yukihiro Nakadaira - yukihiro.nakada...@gmail.com

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.