bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] .... illegal C code.....


From: Paul Eggert
Subject: Re: [Bug-tar] .... illegal C code.....
Date: Fri, 24 Dec 2004 00:18:31 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Joerg Schilling <address@hidden> writes:

> "argp-parse.c", line 485: warning: pointer to void or function used in 
> arithmetic

Thanks for reporting this.  This problem came from gnulib, and Sergey
already fixed it upstream as follows:

http://savannah.gnu.org/cgi-bin/viewcvs/gnulib/gnulib/lib/argp-parse.c.diff?r1=1.9&r2=1.10

> "rmt.c", line 288: warning: argument #2 is incompatible with prototype:
>         prototype: pointer to pointer to char : "../lib/getopt.h", line 209
>         argument : pointer to const pointer to char

This is another upstream bug, this time in paxutils.  Sergey, can you
please install the following patch?  Also, while you're at it, can you
please grant me write access to paxutils, so that I don't need to
bother you with trivial fixes like this?  Thanks.

2004-12-24  Paul Eggert  <address@hidden>

        * rmt/rmt.c (main): argv is of type char **, not char * const *,
        since getopt might permute the arguments.  Problem reported by
        Joerg Schilling.

Index: rmt/rmt.c
===================================================================
RCS file: /cvsroot/paxutils/paxutils/rmt/rmt.c,v
retrieving revision 1.3
diff -p -u -r1.3 rmt.c
--- rmt/rmt.c   22 Dec 2004 10:56:35 -0000      1.3
+++ rmt/rmt.c   24 Dec 2004 08:16:44 -0000
@@ -271,7 +271,7 @@ Manipulate a tape drive, accepting comma
 }
 
 int
-main (int argc, char *const *argv)
+main (int argc, char **argv)
 {
   char command;
   size_t status;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]