diff options
author | Nikias Bassen | 2020-05-03 23:29:25 +0200 |
---|---|---|
committer | Nikias Bassen | 2020-05-03 23:29:25 +0200 |
commit | 21f1da655c019d4f6b2eab06c6cd4a42a724d51d (patch) | |
tree | c47bb34d8fc07b5e90b43d871cac0aae9c169d3a /src | |
parent | e194a7df12261f87cf2c236ccac92a6a9624bc65 (diff) | |
download | libimobiledevice-21f1da655c019d4f6b2eab06c6cd4a42a724d51d.tar.gz libimobiledevice-21f1da655c019d4f6b2eab06c6cd4a42a724d51d.tar.bz2 |
diagnostics_relay: Don't use reserved words as function arguments
Diffstat (limited to 'src')
-rw-r--r-- | src/diagnostics_relay.c | 12 |
1 files changed, 6 insertions, 6 deletions
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); |