X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=utils.h;h=893d3d3a57fa93f18426c9994b0e1c520ac046ff;hp=3918cace912ae745496f68a08ae7effd3ee5525f;hb=0c583b94a530e2c34338a614689e0f9cec1e8664;hpb=a8eb0ec5053205dcb7b97e046d25adc1413ab8db;ds=sidebyside diff --git a/utils.h b/utils.h index 3918cac..893d3d3 100644 --- a/utils.h +++ b/utils.h @@ -1,3 +1,16 @@ +/* + * netifd - network interface daemon + * Copyright (C) 2012 Felix Fietkau + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 + * as published by the Free Software Foundation + * + * 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. + */ #ifndef __NETIFD_UTILS_H #define __NETIFD_UTILS_H @@ -93,6 +106,7 @@ static inline void vlist_simple_update(struct vlist_simple_tree *tree) static inline void vlist_simple_add(struct vlist_simple_tree *tree, struct vlist_simple_node *node) { + node->version = tree->version; list_add(&node->list, &tree->list); }