cppfiles tweek

Richard Henderson rth@cygnus.com
Sat Sep 16 10:49:00 GMT 2000


We're using caddr_t, but not making any effort to get it defined.
Seems easier to use PTR instead.


r~


        * cppiles.c (purge_cache): Use PTR not caddr_t.

Index: cppfiles.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cppfiles.c,v
retrieving revision 1.78
diff -c -p -d -r1.78 cppfiles.c
*** cppfiles.c	2000/09/12 03:42:29	1.78
--- cppfiles.c	2000/09/16 17:47:35
*************** purge_cache (inc)
*** 364,370 ****
    if (inc->buffer)
      {
        if (inc->mapped)
! 	munmap ((caddr_t) inc->buffer, inc->st.st_size);
        else
  	free ((PTR) inc->buffer);
        inc->buffer = NULL;
--- 364,370 ----
    if (inc->buffer)
      {
        if (inc->mapped)
! 	munmap ((PTR) inc->buffer, inc->st.st_size);
        else
  	free ((PTR) inc->buffer);
        inc->buffer = NULL;


More information about the Gcc-patches mailing list