blob: 4f5c4a3c51912fcfc3103fa1da18b557d84a73dc [file] [log] [blame]
diff -aruN a/lib/dlist.c b/lib/dlist.c
--- a/lib/dlist.c 2005-11-25 06:06:05.000000000 -0800
+++ b/lib/dlist.c 2008-12-18 09:13:37.000000000 -0800
@@ -649,7 +649,10 @@
void _dlist_swap(struct dlist *list, struct dl_node *a, struct dl_node *b)
{
- void *swap=a->data;
+ void *swap;
+
+ (void)list;
+ swap=a->data;
a->data=b->data;
b->data=swap;
diff -aruN a/test/dlist_test.c b/test/dlist_test.c
--- a/test/dlist_test.c 2005-11-25 06:06:05.000000000 -0800
+++ b/test/dlist_test.c 2008-12-18 09:15:31.000000000 -0800
@@ -60,7 +60,7 @@
Simple *simple_maker(int ,char *);
-int main (int argc,char *argv[])
+int main (void)
{
Dlist *list;
Simple *s1,*s2,*s3,*stemp;
diff -aruN a/test/get_driver.c b/test/get_driver.c
--- a/test/get_driver.c 2005-11-28 02:22:10.000000000 -0800
+++ b/test/get_driver.c 2008-12-18 09:17:22.000000000 -0800
@@ -37,7 +37,6 @@
struct sysfs_driver *driver = NULL;
struct sysfs_device *device = NULL;
struct dlist *devlist = NULL;
- struct sysfs_attribute *attr = NULL;
if (argc != 3) {
print_usage();