*/
/*
* This file is part of Lustre, http://www.lustre.org/
- * Lustre is a trademark of Sun Microsystems, Inc.
*
* String manipulation functions.
*
/* there is no the delimeter in the string */
end = next->ls_str + next->ls_len;
next->ls_str = NULL;
+ next->ls_len = 0;
} else {
next->ls_str = end + 1;
next->ls_len -= (end - res->ls_str + 1);
struct cfs_expr_list *el;
while (!list_empty(list)) {
- el = list_entry(list->next,
- struct cfs_expr_list, el_link);
+ el = list_first_entry(list,
+ struct cfs_expr_list, el_link);
list_del(&el->el_link);
cfs_expr_list_free(el);
}