[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gozilla -d
From: |
Shigio Yamaguchi |
Subject: |
Re: gozilla -d |
Date: |
Tue, 22 Apr 2003 22:41:17 +0900 |
You are right.
I have committed your patch. Thank you!
> On Thu, 03 Apr 2003 02:22:39 +0900, Shigio Yamaguchi wrote...
> > ***************
> > *** 323,329 ****
> > }
> > dbop_close(dbop);
> > } else {
> > ! STRBUF *sb = strbuf_open(0);
> > FILE *fp;
> >
> > fp = fopen(path, "r");
> > --- 324,330 ----
> > }
> > dbop_close(dbop);
> > } else {
> > ! sb = strbuf_open(0);
> > FILE *fp;
> >
> > fp = fopen(path, "r");
>
> This makes it impossible to compile with old compiler which does not support
C99.
>
> Index: gozilla/gozilla.c
> ===================================================================
> RCS file: /cvsroot/global/global/gozilla/gozilla.c,v
> retrieving revision 1.20
> diff -u -r1.20 gozilla.c
> --- gozilla/gozilla.c 2 Apr 2003 17:21:19 -0000 1.20
> +++ gozilla/gozilla.c 22 Apr 2003 12:11:03 -0000
> @@ -324,9 +324,9 @@
> }
> dbop_close(dbop);
> } else {
> - sb = strbuf_open(0);
> FILE *fp;
>
> + sb = strbuf_open(0);
> fp = fopen(path, "r");
> if (fp) {
> while ((p = strbuf_fgets(sb, fp, STRBUF_NOCRLF)) != NUL
L) {
>
> ----
> Hideki IWAMOTO address@hidden
--
Shigio Yamaguchi <address@hidden> - Tama Communications Corporation
Spare mail address: <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3