aboutsummaryrefslogtreecommitdiff
path: root/src/outstream.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/outstream.c')
-rw-r--r--src/outstream.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/outstream.c b/src/outstream.c
index 10b5f981..9ad33715 100644
--- a/src/outstream.c
+++ b/src/outstream.c
@@ -24,7 +24,6 @@ int __ILWS_add_outstream(struct outstream *list,char *fname,FILE* stream,int ist
24 while(temp->next!=NULL)temp=temp->next; 24 while(temp->next!=NULL)temp=temp->next;
25 25
26 if(!(temp->next=__ILWS_malloc(sizeof(struct outstream)))) { 26 if(!(temp->next=__ILWS_malloc(sizeof(struct outstream)))) {
27 LWSERR(LE_MEMORY);
28 return 0; 27 return 0;
29 }; 28 };
30 // file check (0.5.3); 29 // file check (0.5.3);
@@ -41,7 +40,6 @@ int __ILWS_add_outstream(struct outstream *list,char *fname,FILE* stream,int ist
41 if(!(temp->next->fname=__ILWS_malloc(strlen(fname)+1))) { 40 if(!(temp->next->fname=__ILWS_malloc(strlen(fname)+1))) {
42 __ILWS_free(temp->next); 41 __ILWS_free(temp->next);
43 temp->next=NULL; 42 temp->next=NULL;
44 LWSERR(LE_MEMORY);
45 return 0; 43 return 0;
46 }; 44 };
47 memcpy(temp->next->fname,fname,strlen(fname)); 45 memcpy(temp->next->fname,fname,strlen(fname));
@@ -66,7 +64,6 @@ struct outstream *__ILWS_init_outstream_list() {
66 64
67 65
68 if(!(ret=__ILWS_malloc(sizeof(struct outstream)))) { 66 if(!(ret=__ILWS_malloc(sizeof(struct outstream)))) {
69 LWSERR(LE_MEMORY);
70 return NULL; 67 return NULL;
71 }; 68 };
72 ret->todelete=0; 69 ret->todelete=0;
@@ -87,7 +84,6 @@ void __ILWS_delete_outstream(struct outstream *node) { // Changed
87 if(node->todelete) { // is temporary file 84 if(node->todelete) { // is temporary file
88 rt=unlink(node->fname); 85 rt=unlink(node->fname);
89 if(rt==-1) { 86 if(rt==-1) {
90 LWSERR(LE_FILESYS);
91 }; 87 };
92 88
93 }; 89 };