patch-src-vars.c 1.8 KB
Newer Older
trasz's avatar
trasz committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
--- src/vars.c.orig	2015-01-19 15:36:23.000000000 +0100
+++ src/vars.c	2015-01-19 15:36:36.000000000 +0100
@@ -94,7 +94,7 @@ vars_get_variable_size(efi_guid_t guid, 
 
 	char *path = NULL;
 	int rc = asprintf(&path, VARS_PATH "%s-"GUID_FORMAT"/size",
-			  name, guid.a, guid.b, guid.c, bswap_16(guid.d),
+			  name, guid.a, guid.b, guid.c, bswap16(guid.d),
 			  guid.e[0], guid.e[1], guid.e[2], guid.e[3],
 			  guid.e[4], guid.e[5]);
 	if (rc < 0)
@@ -146,7 +146,7 @@ vars_get_variable(efi_guid_t guid, const
 	size_t bufsize = -1;
 	char *path;
 	int rc = asprintf(&path, VARS_PATH "%s-" GUID_FORMAT "/raw_var",
-			  name, guid.a, guid.b, guid.c, bswap_16(guid.d),
+			  name, guid.a, guid.b, guid.c, bswap16(guid.d),
 			  guid.e[0], guid.e[1], guid.e[2],
 			  guid.e[3], guid.e[4], guid.e[5]);
 	if (rc < 0)
@@ -193,7 +193,7 @@ vars_del_variable(efi_guid_t guid, const
 	int ret = -1;
 	char *path;
 	int rc = asprintf(&path, VARS_PATH "%s-" GUID_FORMAT "/raw_var",
-			  name, guid.a, guid.b, guid.c, bswap_16(guid.d),
+			  name, guid.a, guid.b, guid.c, bswap16(guid.d),
 			  guid.e[0], guid.e[1], guid.e[2],
 			  guid.e[3], guid.e[4], guid.e[5]);
 	if (rc < 0)
@@ -280,7 +280,7 @@ vars_chmod_variable(efi_guid_t guid, con
 
 	char *path;
 	int rc = asprintf(&path, VARS_PATH "%s-" GUID_FORMAT,
-			  name, guid.a, guid.b, guid.c, bswap_16(guid.d),
+			  name, guid.a, guid.b, guid.c, bswap16(guid.d),
 			  guid.e[0], guid.e[1], guid.e[2], guid.e[3],
 			  guid.e[4], guid.e[5]);
 	if (rc < 0)
@@ -312,7 +312,7 @@ vars_set_variable(efi_guid_t guid, const
 
 	char *path;
 	int rc = asprintf(&path, VARS_PATH "%s-" GUID_FORMAT "/data",
-			  name, guid.a, guid.b, guid.c, bswap_16(guid.d),
+			  name, guid.a, guid.b, guid.c, bswap16(guid.d),
 			  guid.e[0], guid.e[1], guid.e[2], guid.e[3],
 			  guid.e[4], guid.e[5]);
 	if (rc < 0)