#include "common.h"
#include <unistd.h>
#include "model.h"
+#include "snapshot-interface.h"
#include <dlfcn.h>
+#include <errno.h>
static int (*pipe_init_p)(int filep[2]) = NULL;
model->startChecker();
}
if (!pipe_init_p) {
- pipe_init_p = (int (*)(int file[2])) dlsym(RTLD_NEXT, "pipe");
- if ((error = dlerror()) != NULL) {
+ pipe_init_p = (int (*)(int fildes[2])) dlsym(RTLD_NEXT, "pipe");
+ char *error = dlerror();
+ if (error != NULL) {
fputs(error, stderr);
exit(EXIT_FAILURE);
}
}
- pipe_init_p(filedes);
+ return pipe_init_p(fildes);
}