Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
justanhduc committed Nov 10, 2020
1 parent 788a38b commit a45e945
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ all: ts
tsretry: tsretry.c

ts: $(OBJECTS)
$(CC) $(LDFLAGS) -o ts $^
$(CC) $(LDFLAGS) -o ts $^ -std=c11

# Test our 'tail' implementation.
ttail: tail.o ttail.o
$(CC) $(LDFLAGS) -o ttail $^
$(CC) $(LDFLAGS) -o ttail $^ -std=c11


.c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -std=c11

# Dependencies
main.o: main.c main.h
Expand Down
4 changes: 2 additions & 2 deletions main.h
Original file line number Diff line number Diff line change
Expand Up @@ -268,13 +268,13 @@ void dump_conns_struct(FILE *out);

/* server_start.c */
int try_connect(int s);
void wait_server_up();
void wait_server_up(int fd);
int ensure_server_up();
void notify_parent(int fd);
void create_socket_path(char **path);

/* execute.c */
int run_job();
int run_job(struct Result *res);

/* client_run.c */
void c_run_tail(const char *filename);
Expand Down
2 changes: 0 additions & 2 deletions reinstall
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
make clean
sudo make uninstall
make
sudo make install

0 comments on commit a45e945

Please sign in to comment.