From 69aff9a20479a97fa4a29b0e36ad4195785f424e Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 25 May 2016 20:28:32 +0200 Subject: updated copyright info --- src/slist.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/slist.c') diff --git a/src/slist.c b/src/slist.c index 0491dae..249a3cf 100644 --- a/src/slist.c +++ b/src/slist.c @@ -5,8 +5,8 @@ * channels from one dvb device and provides the streams via minimal http. * * - * Copyright (C) 2011 Christian Pointner - * + * Copyright (C) 2011-2016 Christian Pointner + * * This file is part of gstdvbbackend. * * gstdvbbackend is free software: you can redistribute it and/or modify @@ -34,10 +34,10 @@ slist_element_t* slist_get_last(slist_element_t* first) { if(!first) return NULL; - + while(first->next_) first = first->next_; - + return first; } @@ -60,7 +60,7 @@ slist_element_t* slist_add(slist_t* lst, void* data) slist_element_t* new_element = malloc(sizeof(slist_element_t)); if(!new_element) return NULL; - + new_element->data_ = data; new_element->next_ = NULL; @@ -68,7 +68,7 @@ slist_element_t* slist_add(slist_t* lst, void* data) lst->first_ = new_element; else slist_get_last(lst->first_)->next_ = new_element; - + return new_element; } @@ -102,7 +102,7 @@ void slist_clear(slist_t* lst) { if(!lst || !lst->first_) return; - + do { slist_element_t* deletee = lst->first_; lst->first_ = lst->first_->next_; @@ -110,7 +110,7 @@ void slist_clear(slist_t* lst) free(deletee); } while(lst->first_); - + lst->first_ = NULL; } @@ -118,11 +118,11 @@ int slist_length(slist_t* lst) { if(!lst || !lst->first_) return 0; - + int len = 0; slist_element_t* tmp; for(tmp = lst->first_; tmp; tmp = tmp->next_) len++; - + return len; } -- cgit v1.2.3