[BusyBox-cvs] busybox/libbb llist_add_to.c,NONE,1.1 Makefile.in,1.13,1.14

Glenn McGrath bug1 at busybox.net
Sun Dec 8 00:54:37 UTC 2002


Update of /var/cvs/busybox/libbb
In directory winder:/tmp/cvs-serv20423/libbb

Modified Files:
	Makefile.in 
Added Files:
	llist_add_to.c 
Log Message:
Move add_to_list from libunarchive to libbb so it can be of more general use (eg ifupdown). Changed the name to llist_add_to as i plan on adding more llist_ functions as needed (e.g. llist_free).


--- NEW FILE: llist_add_to.c ---
#include <stdlib.h>
#include <string.h>
#include "unarchive.h"
#include "libbb.h"

extern llist_t *llist_add_to(llist_t *old_head, char *new_item)
{
	llist_t *new_head;

	new_head = xmalloc(sizeof(llist_t));
	new_head->data = new_item;
	new_head->link = old_head;

	return(new_head);
}

Index: Makefile.in
===================================================================
RCS file: /var/cvs/busybox/libbb/Makefile.in,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- Makefile.in	7 Dec 2002 23:56:14 -0000	1.13
+++ Makefile.in	8 Dec 2002 00:54:33 -0000	1.14
@@ -33,7 +33,7 @@
 	get_last_path_component.c get_line_from_file.c herror_msg.c \
 	herror_msg_and_die.c human_readable.c inet_common.c inode_hash.c \
 	interface.c isdirectory.c kernel_version.c last_char_is.c libc5.c \
-	loop.c make_directory.c mode_string.c \
+	llist_add_to.c loop.c make_directory.c mode_string.c \
 	module_syscalls.c mtab.c mtab_file.c my_getgrgid.c my_getgrnam.c \
 	my_getpwnam.c my_getpwnamegid.c my_getpwuid.c obscure.c parse_mode.c \
 	parse_number.c perror_msg.c perror_msg_and_die.c print_file.c \




More information about the busybox-cvs mailing list