chore: De-sloppify pass -- cleanup across all source files
- Fix header guard in itr4m.h: ITRM_H -> ITR4M_H (match filename) - Remove unused <stdio.h> include from itr4m.h - Remove unused <stdio.h> include from session.c - Rename static plist_to_xml_string -> plist_node_to_xml in activation.c to avoid shadowing the public API in plist_helpers.h Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
7b7a307ab1
commit
e4bf10da85
3 changed files with 6 additions and 8 deletions
|
|
@ -1,9 +1,8 @@
|
|||
#ifndef ITRM_H
|
||||
#define ITRM_H
|
||||
#ifndef ITR4M_H
|
||||
#define ITR4M_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
|
|
@ -12,4 +11,4 @@
|
|||
#define ITR4M_OK 0
|
||||
#define ITR4M_ERR -1
|
||||
|
||||
#endif /* ITRM_H */
|
||||
#endif /* ITR4M_H */
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ static int ma_client_start(device_info_t *dev, mobileactivation_client_t *ma)
|
|||
}
|
||||
|
||||
/* Convert a plist node to an XML string. Caller must free *xml. */
|
||||
static int plist_to_xml_string(plist_t node, char **xml, uint32_t *xml_len)
|
||||
static int plist_node_to_xml(plist_t node, char **xml, uint32_t *xml_len)
|
||||
{
|
||||
if (!node || !xml || !xml_len) return -1;
|
||||
|
||||
|
|
@ -123,7 +123,7 @@ int activation_get_session_info(device_info_t *dev,
|
|||
return -1;
|
||||
}
|
||||
|
||||
if (plist_to_xml_string(blob, blob_xml, blob_len) < 0) {
|
||||
if (plist_node_to_xml(blob, blob_xml, blob_len) < 0) {
|
||||
plist_free(blob);
|
||||
mobileactivation_client_free(ma);
|
||||
return -1;
|
||||
|
|
@ -162,7 +162,7 @@ int activation_get_info(device_info_t *dev,
|
|||
return -1;
|
||||
}
|
||||
|
||||
if (plist_to_xml_string(info, info_xml, info_len) < 0) {
|
||||
if (plist_node_to_xml(info, info_xml, info_len) < 0) {
|
||||
plist_free(info);
|
||||
mobileactivation_client_free(ma);
|
||||
return -1;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@
|
|||
* local drmHandshake construction for offline bypass.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue