Diff for /src/sys/net/ppp_layer/ppp_deflate.c between versions 1.4 and 1.5

version 1.4, 2003/08/26 20:49:48 version 1.5, 2004/04/22 04:22:05
Line 126  z_alloc(notused, items, size) Line 126  z_alloc(notused, items, size)
 {  {
     void *ptr;      void *ptr;
   
    MALLOC(ptr, void *, items * size, M_DEVBUF, M_NOWAIT);    MALLOC(ptr, void *, items * size, M_DEVBUF, M_WAITOK);
     return ptr;      return ptr;
 }  }
   
Line 160  z_comp_alloc(options, opt_len) Line 160  z_comp_alloc(options, opt_len)
         return NULL;          return NULL;
   
     MALLOC(state, struct deflate_state *, sizeof(struct deflate_state),      MALLOC(state, struct deflate_state *, sizeof(struct deflate_state),
           M_DEVBUF, M_NOWAIT);           M_DEVBUF, M_WAITOK);
    if (state == NULL) 
        return NULL; 
   
     state->strm.next_in = NULL;      state->strm.next_in = NULL;
     state->strm.zalloc = z_alloc;      state->strm.zalloc = z_alloc;
Line 390  z_decomp_alloc(options, opt_len) Line 388  z_decomp_alloc(options, opt_len)
         return NULL;          return NULL;
   
     MALLOC(state, struct deflate_state *, sizeof(struct deflate_state),      MALLOC(state, struct deflate_state *, sizeof(struct deflate_state),
           M_DEVBUF, M_NOWAIT);           M_DEVBUF, M_WAITOK);
    if (state == NULL) 
        return NULL; 
   
     state->strm.next_out = NULL;      state->strm.next_out = NULL;
     state->strm.zalloc = z_alloc;      state->strm.zalloc = z_alloc;

Removed from v.1.4  
changed lines
  Added in v.1.5