Skip to content

Commit

Permalink
Merge pull request #1056 from RSilicon/Dictionary
Browse files Browse the repository at this point in the history
Use xpc_dictionary_create_empty to create empty dictionaries
  • Loading branch information
michaelrsweet authored Sep 21, 2024
2 parents 85e977d + 7c8bb95 commit 7164c8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/ipp.c
Original file line number Diff line number Diff line change
Expand Up @@ -3352,7 +3352,7 @@ run_as_user(char *argv[], /* I - Command-line arguments */
* Try starting the backend...
*/

request = xpc_dictionary_create(NULL, NULL, 0);
request = xpc_dictionary_create_empty();
xpc_dictionary_set_int64(request, "command", kPMStartJob);
xpc_dictionary_set_string(request, "device-uri", device_uri);
xpc_dictionary_set_string(request, "job-id", argv[1]);
Expand Down Expand Up @@ -3405,7 +3405,7 @@ run_as_user(char *argv[], /* I - Command-line arguments */
* Then wait for the backend to finish...
*/

request = xpc_dictionary_create(NULL, NULL, 0);
request = xpc_dictionary_create_empty();
xpc_dictionary_set_int64(request, "command", kPMWaitForJob);
xpc_dictionary_set_fd(request, "stderr", 2);

Expand Down

0 comments on commit 7164c8c

Please sign in to comment.