Commit 3ee385e6 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Simplify

parent 645e2c1e
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include <arpa/inet.h> #include <arpa/inet.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <errno.h>
#include <string> #include <string>
#include <vector> #include <vector>
using namespace std; using namespace std;
...@@ -101,7 +100,7 @@ void Program::SetCustomSDP(const char *fname) ...@@ -101,7 +100,7 @@ void Program::SetCustomSDP(const char *fname)
if(NULL == (f = fopen(fname, "rb"))) if(NULL == (f = fopen(fname, "rb")))
{ {
fprintf(stderr, "%s: %s\n", fname, strerror(errno)); perror(fname);
exit(1); exit(1);
} }
l = fread(buf, 1, sizeof(buf) - 1, f); l = fread(buf, 1, sizeof(buf) - 1, f);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment