X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=grab_client.c;h=11aed36a8b3608b17dcee9cf29178c2e0927c0dc;hp=70b95f4f655b174db266809428f5f0667e6bc2e2;hb=7f2f826603c955d35d50d6ab2a6ed48a3bc24ab8;hpb=bf2430160b2704e97a3ff1774d689b4b85e94eb5 diff --git a/grab_client.c b/grab_client.c index 70b95f4f..11aed36a 100644 --- a/grab_client.c +++ b/grab_client.c @@ -1,19 +1,7 @@ /* * Copyright (C) 2006 Andre Noll * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * Licensed under the GPL v2. For licencing details see COPYING. */ /** @@ -33,6 +21,7 @@ #include "error.h" #include "string.h" #include "fd.h" +#include "crypt.h" /** grab clients that are not yet attached to a filter node */ struct list_head inactive_grab_client_list; @@ -123,7 +112,7 @@ static void add_inactive_gc(struct grab_client *gc) { PARA_INFO_LOG("adding grab client %p (fd %d) to inactive list\n", gc, gc->fd); - list_add(&gc->node, &inactive_grab_client_list); + para_list_add(&gc->node, &inactive_grab_client_list); } static void gc_free(struct grab_client *gc) @@ -164,7 +153,7 @@ void activate_grab_client(struct grab_client *gc, struct filter_node *fn) { PARA_INFO_LOG("activating %p (fd %d, filter node: %p)\n", gc, gc->fd, fn); list_del(&gc->node); - list_add(&gc->fcb.node, &fn->callbacks); + para_list_add(&gc->fcb.node, &fn->callbacks); } /** @@ -276,7 +265,7 @@ err_out: * This has to be called once during startup before any other function from * grab_client.c may be used. It initializes \a inactive_grab_client_list. */ -void init_grabbing() +void init_grabbing(void) { PARA_INFO_LOG("%s", "grab init\n"); INIT_LIST_HEAD(&inactive_grab_client_list);