httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Stein <gst...@lyra.org>
Subject Re: cvs commit: apache-2.0/src/lib/apr/file_io/unix readwrite.c
Date Tue, 11 Apr 2000 23:29:20 GMT
Or the He-Man way:

    *((char *)buf)++ = ...

:-)

On 11 Apr 2000 trawick@locus.apache.org wrote:

> trawick     00/04/11 07:08:34
> 
>   Modified:    src/lib/apr/file_io/unix readwrite.c
>   Log:
>   Fix compile error on OS/390 in ap_read().
>   
>   Revision  Changes    Path
>   1.37      +2 -1      apache-2.0/src/lib/apr/file_io/unix/readwrite.c
>   
>   Index: readwrite.c
>   ===================================================================
>   RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/unix/readwrite.c,v
>   retrieving revision 1.36
>   retrieving revision 1.37
>   diff -u -r1.36 -r1.37
>   --- readwrite.c	2000/04/10 12:16:40	1.36
>   +++ readwrite.c	2000/04/11 14:08:34	1.37
>   @@ -108,7 +108,8 @@
>    
>        if (thefile->ungetchar != -1) {
>            used_unget = TRUE;
>   -        *(char *)buf++ = (char)thefile->ungetchar;
>   +        *(char *)buf = (char)thefile->ungetchar;
>   +        buf = (char *)buf + 1;
>            (*nbytes)--;
>            thefile->ungetchar = -1;
>        }
>   
>   
>   
> 

-- 
Greg Stein, http://www.lyra.org/


Mime
View raw message