This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

cppfiles tweek


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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]