Skip to content

Commit

Permalink
corrections after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonelllo committed Jan 10, 2024
1 parent 5543b13 commit 5771b09
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
8 changes: 0 additions & 8 deletions headers/wrapFuncs/wrapFunc.c
Original file line number Diff line number Diff line change
Expand Up @@ -483,14 +483,6 @@ void Sigprocmask(int type, const sigset_t *mask, sigset_t *oldset) {
}
}

void Sigprocmask(int type, const sigset_t *mask, sigset_t *oldset) {
int ret = sigprocmask(type, mask, oldset);
if (ret < 0) {
perror("Error on executing sigprocmask");
exit(EXIT_FAILURE);
}
}

void Fclose(FILE *stream) {
int ret = fclose(stream);
if (ret == EOF) {
Expand Down
16 changes: 0 additions & 16 deletions src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,6 @@ void signal_handler(int signo, siginfo_t *info, void *context) {
}

int main(int argc, char *argv[]) {
// Specifying that argc and argv are unused variables
int from_drone_pipe, from_input_pipe, to_input_pipe, from_map_pipe,
to_map_pipe;

if (argc == 6) {
sscanf(argv[1], "%d", &from_drone_pipe);
sscanf(argv[2], "%d", &from_input_pipe);
sscanf(argv[3], "%d", &to_input_pipe);
sscanf(argv[4], "%d", &from_map_pipe);
sscanf(argv[5], "%d", &to_map_pipe);
} else {
printf("Wrong number of arguments in input\n");
getchar();
exit(1);
}

// Signal declaration
struct sigaction sa;
memset(&sa, 0, sizeof(sa));
Expand Down

0 comments on commit 5771b09

Please sign in to comment.