summaryrefslogtreecommitdiff
path: root/src/outitf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/outitf.c')
-rw-r--r--src/outitf.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/outitf.c b/src/outitf.c
index 7cd0ddb..1ac92ab 100644
--- a/src/outitf.c
+++ b/src/outitf.c
@@ -21,9 +21,9 @@ Modified: 2000 AlansFixes, 2013/2015 patch by Krzysztof Blaszkowski
#include "ngspice/ngspice.h"
-/*05.June.2020 - BM - Added follwing includes for Windows OS */
+/*05.June.2020 - BM - Added follwing includes for Win OS */
#ifdef _WIN32
- #undef BOOLEAN /* Undefine it due to conflicting definitions in Windows OS */
+ #undef BOOLEAN /* Undefine it due to conflicting definitions in Win OS */
#include <ws2tcpip.h>
#include <winsock2.h>
@@ -58,7 +58,6 @@ Modified: 2000 AlansFixes, 2013/2015 patch by Krzysztof Blaszkowski
/* 27.May.2020 - BM - Added the following #include */
#ifdef __linux__
- #include <stdio.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <unistd.h>
@@ -206,12 +205,14 @@ static void close_server()
closesocket(sock);
#endif
}
+
+ fclose(fptr);
}
#ifdef _WIN32
WSACleanup();
#endif
- fclose(fptr);
+
remove(ip_filename);
}