Changeset 3c4fc4 in git


Ignore:
Timestamp:
Aug 29, 2016, 6:18:56 PM (7 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
Children:
8f95fa5a16bb8841f4212fe2ecdf0604c8f45bf9
Parents:
1ebbdce12c1aaa288e292fcb3087f039f304bde5
Message:
removed s_free (now incloded in s_close)
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Singular/links/ssiLink.cc

    r1ebbdc r3c4fc4  
    821821            ssiInfo *dd=(ssiInfo*)hh->l->data;
    822822            s_close(dd->f_read);
    823             s_free(dd->f_read);
    824823            fclose(dd->f_write);
    825824            if (dd->r!=NULL) rKill(dd->r);
     
    12001199        }
    12011200      }
    1202       if (d->f_read!=NULL) { s_close(d->f_read);s_free(d->f_read);d->f_read=NULL;}
     1201      if (d->f_read!=NULL) { s_close(d->f_read);d->f_read=NULL;}
    12031202      if (d->f_write!=NULL) { fclose(d->f_write); d->f_write=NULL; }
    12041203      if ((strcmp(l->mode,"tcp")==0)
  • libpolys/reporter/s_buff.cc

    r1ebbdc r3c4fc4  
    4242}
    4343
    44 int    s_free(s_buff &F)
     44int    s_close(s_buff &F)
    4545{
    4646  if (F!=NULL)
    4747  {
     48    int r=close(F->fd);
    4849    omFreeSize(F->buff,S_BUFF_LEN);
    4950    omFreeSize(F,sizeof(*F));
    5051    F=NULL;
    51   }
    52   return 0;
    53 }
    54 
    55 int    s_close(s_buff &F)
    56 {
    57   if (F!=NULL)
    58   {
    59     int r=close(F->fd);
    6052    return r;
    6153  }
  • libpolys/reporter/s_buff.h

    r1ebbdc r3c4fc4  
    1818s_buff s_open(int fd);
    1919s_buff s_open_by_name(const char *n);
    20 int    s_free(s_buff &f);
    2120int    s_close(s_buff &f);
    2221
Note: See TracChangeset for help on using the changeset viewer.