DragonFly BSD
DragonFly commits List (threaded) for 2005-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cvs commit: src/usr.bin/make main.c


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Tue, 5 Apr 2005 10:18:29 +0200
Mail-followup-to: commits@crater.dragonflybsd.org

On Tue, Apr 05, 2005 at 12:55:02AM -0700, Joerg Sonnenberger wrote:
> joerg       2005/04/05 00:55:02 PDT
> 
> DragonFly src repository
> 
>   Modified files:
>     usr.bin/make         main.c 
>   Log:
>   Since optind=0 has a special meaning for GNU getopt compatibility,
>   always use optind=1 and increment argc / decrement argv beforehand.
>   
>   Revision  Changes    Path
>   1.66      +6 -5      src/usr.bin/make/main.c
> 
> 
> http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/main.c.diff?r1=1.65&r2=1.66&f=u

I think make should also set optreset, but I leave that for Max to figure
out :)

Joerg



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