summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2020-05-03 23:29:25 +0200
committerGravatar Nikias Bassen2020-05-03 23:29:25 +0200
commit21f1da655c019d4f6b2eab06c6cd4a42a724d51d (patch)
treec47bb34d8fc07b5e90b43d871cac0aae9c169d3a
parente194a7df12261f87cf2c236ccac92a6a9624bc65 (diff)
downloadlibimobiledevice-21f1da655c019d4f6b2eab06c6cd4a42a724d51d.tar.gz
libimobiledevice-21f1da655c019d4f6b2eab06c6cd4a42a724d51d.tar.bz2
diagnostics_relay: Don't use reserved words as function arguments
-rw-r--r--include/libimobiledevice/diagnostics_relay.h2
-rw-r--r--src/diagnostics_relay.c12
2 files changed, 7 insertions, 7 deletions
diff --git a/include/libimobiledevice/diagnostics_relay.h b/include/libimobiledevice/diagnostics_relay.h
index d1d44c2..d37ad74 100644
--- a/include/libimobiledevice/diagnostics_relay.h
+++ b/include/libimobiledevice/diagnostics_relay.h
@@ -176,7 +176,7 @@ diagnostics_relay_error_t diagnostics_relay_request_diagnostics(diagnostics_rela
diagnostics_relay_error_t diagnostics_relay_query_mobilegestalt(diagnostics_relay_client_t client, plist_t keys, plist_t* result);
-diagnostics_relay_error_t diagnostics_relay_query_ioregistry_entry(diagnostics_relay_client_t client, const char* name, const char* class, plist_t* result);
+diagnostics_relay_error_t diagnostics_relay_query_ioregistry_entry(diagnostics_relay_client_t client, const char* entry_name, const char* entry_class, plist_t* result);
diagnostics_relay_error_t diagnostics_relay_query_ioregistry_plane(diagnostics_relay_client_t client, const char* plane, plist_t* result);
diff --git a/src/diagnostics_relay.c b/src/diagnostics_relay.c
index 0e864c7..b6cf4d9 100644
--- a/src/diagnostics_relay.c
+++ b/src/diagnostics_relay.c
@@ -370,18 +370,18 @@ LIBIMOBILEDEVICE_API diagnostics_relay_error_t diagnostics_relay_query_mobileges
return ret;
}
-LIBIMOBILEDEVICE_API diagnostics_relay_error_t diagnostics_relay_query_ioregistry_entry(diagnostics_relay_client_t client, const char* name, const char* class, plist_t* result)
+LIBIMOBILEDEVICE_API diagnostics_relay_error_t diagnostics_relay_query_ioregistry_entry(diagnostics_relay_client_t client, const char* entry_name, const char* entry_class, plist_t* result)
{
- if (!client || (name == NULL && class == NULL) || result == NULL)
+ if (!client || (entry_name == NULL && entry_class == NULL) || result == NULL)
return DIAGNOSTICS_RELAY_E_INVALID_ARG;
diagnostics_relay_error_t ret = DIAGNOSTICS_RELAY_E_UNKNOWN_ERROR;
plist_t dict = plist_new_dict();
- if (name)
- plist_dict_set_item(dict,"EntryName", plist_new_string(name));
- if (class)
- plist_dict_set_item(dict,"EntryClass", plist_new_string(class));
+ if (entry_name)
+ plist_dict_set_item(dict,"EntryName", plist_new_string(entry_name));
+ if (entry_class)
+ plist_dict_set_item(dict,"EntryClass", plist_new_string(entry_class));
plist_dict_set_item(dict,"Request", plist_new_string("IORegistry"));
ret = diagnostics_relay_send(client, dict);
plist_free(dict);