pass ARCH down to uClibc
[buildroot.git] / package / libsysfs / libsysfs-2.1.0-susv3-legacy.patch
blob14587aa4ebc107dc31d523a9bc46071d34734a33
1 --- sysfsutils-2.1.0.orig/cmd/names.c 2005-04-07 01:18:11.000000000 +0200
2 +++ sysfsutils-2.1.0/cmd/names.c 2008-01-24 19:07:24.000000000 +0100
3 @@ -68,7 +68,7 @@
4 if (n)
5 return 1;
6 n = malloc(sizeof(struct nl_entry));
7 - bzero(n, sizeof(struct nl_entry));
8 + memset(n, 0, sizeof(struct nl_entry));
9 n->id1 = id1;
10 n->id2 = id2;
11 n->id3 = id3;
12 @@ -212,7 +212,7 @@
13 err_name_list(a, "read");
14 a->nl_list[st.st_size] = 0;
15 a->nl_hash = malloc(sizeof(struct nl_entry *) * HASH_SIZE);
16 - bzero(a->nl_hash, sizeof(struct nl_entry *) * HASH_SIZE);
17 + memset(a->nl_hash, 0, sizeof(struct nl_entry *) * HASH_SIZE);
18 parse_name_list(a);
19 close(fd);