Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbiehl authored and alexbiehl committed Nov 30, 2012
1 parent f2be7c2 commit a51edcc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ CPPFLAGS = $(CPPFLAGS_COMMON) $(CPPFLAGS_$(OS))
CFLAGS_LINUX =
CFLAGS_LINUX64 =
CFLAGS_MACOSX =
CFLAGS_COMMON = -O2 -pedantic -Wall -Wextra -Werror -std=c99
CFLAGS_COMMON = -Os -pedantic -Wall -Wextra -Werror -std=c99
CFLAGS = $(CFLAGS_COMMON) $(CFLAGS_$(OS))

# Linker
Expand Down
5 changes: 5 additions & 0 deletions loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ int loop_modify_handler(struct loop *l, int fd, int events) {
struct handler *h = array_get(&l->handlers, sizeof(*h), fd);

if (h->events != events) {

// int new_events = (h->events & events);




poll_remove_all(&l->poll, fd);
poll_register(&l->poll, fd, events);
Expand Down
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void close_callback(void *user_data) {

counter--;

printf("%u\n", counter);
// printf("%u\n", counter);
}

void header_complete(char *header, long long header_size, void *user_data) {
Expand Down

0 comments on commit a51edcc

Please sign in to comment.