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

Re: dateutils: FTBFS on hurd-i386 (for review)



Svante Signell, le Thu 15 May 2014 08:43:13 +0200, a écrit :
> > Also, why this:
> > 
> > > @@ -701,7 +706,7 @@
> > >  
> > >  	case 0:;
> > >  		/* i am the child */
> > > -		static char *const diff_opt[] = {
> > > +	  	char *diff_opt[] = {
> >  			"diff",
> > >  			"-u",
> > >  			expfn, actfn, NULL,
> > 
> > Apart from that, it looks fine.
> 
> As the code is written I can use
>   char *const diff_opt[]
> or
>   char *diff_opt[]
> but not
>   static char *const diff_opt[]
> or
>   static char *diff_opt[]

Why?

The existing code is using static const, what happens if you don't leave
it as it is?

Samuel


Reply to: