summary refs log tree commit diff homepage
path: root/server.c
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2017-08-13 14:38:33 -0400
committerJune McEnroe <programble@gmail.com>2017-08-13 14:38:33 -0400
commitf96dcf480e66d5a9a3d88c9fb7827d81ab3cfa77 (patch)
tree51556522ba38caff1291304f51cd6a792345895f /server.c
parentCheck COLOR_PAIRS in client (diff)
downloadtorus-f96dcf480e66d5a9a3d88c9fb7827d81ab3cfa77.tar.gz
torus-f96dcf480e66d5a9a3d88c9fb7827d81ab3cfa77.zip
Clean up unnecessary kevent initializers
Diffstat (limited to 'server.c')
-rwxr-xr-xserver.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/server.c b/server.c
index c3ae650..e360067 100755
--- a/server.c
+++ b/server.c
@@ -279,9 +279,6 @@ int main() {
         .ident = server,
         .filter = EVFILT_READ,
         .flags = EV_ADD,
-        .fflags = 0,
-        .data = 0,
-        .udata = NULL,
     };
     int nevents = kevent(kq, &event, 1, NULL, 0, NULL);
     if (nevents < 0) err(EX_OSERR, "kevent");
@@ -330,8 +327,6 @@ int main() {
             .ident = fd,
             .filter = EVFILT_READ,
             .flags = EV_ADD,
-            .fflags = 0,
-            .data = 0,
             .udata = client,
         };
         nevents = kevent(kq, &event, 1, NULL, 0, NULL);
" button still works and the log matches the path displayed in the top bar. Since following renames requires running diff on every commit we consider, I've added a knob to the configuration file to globally enable/disable this feature. Note that we may consider a large number of commits the revision walking machinery no longer performs any path limitation so we have to examine every commit until we find a page full of commits that affect the target path or something related to it. Suggested-by: René Neumann <necoro@necoro.eu> Signed-off-by: John Keeping <john@keeping.me.uk> 2015-08-12shared: make cgit_diff_tree_cb publicJohn Keeping This will allow us to use this nice wrapper function elsewhere, avoiding dealing with the diff queue when we only need to inspect a filepair. Signed-off-by: John Keeping <john@keeping.me.uk> 2015-08-12t0110: Chain together using &&Jason A. Donenfeld 2015-08-12about: always ensure page has a trailing slashJason A. Donenfeld Otherwise we can't easily embed links to other /about/ pages. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> 2015-08-12filters: apply HTML escapingLazaros Koromilas http://www.w3.org/International/questions/qa-escapes#use 2015-08-12git: update to v2.5.0Christian Hesse Update to git version v2.5.0. * Upstream commit 5455ee0573a22bb793a7083d593ae1ace909cd4c (Merge branch 'bc/object-id') changed API: for_each_ref() callback functions were taught to name the objects not with "unsigned char sha1[20]" but with "struct object_id". * Upstream commit dcf692625ac569fefbe52269061230f4fde10e47 (path.c: make get_pathname() call sites return const char *) Signed-off-by: Christian Hesse <mail@eworm.de> 2015-08-12Fix processing of repo.hide and repo.ignoreDaniel Reichelt