From: Rose Date: Fri, 20 Sep 2024 21:25:37 +0000 (-0400) Subject: Use xpc_dictionary_create_empty to create empty dictionaries X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1056%2Fhead;p=thirdparty%2Fcups.git Use xpc_dictionary_create_empty to create empty dictionaries xpc_dictionary_create has Nonnull annotated for some of its parameters. We should just do xpc_dictionary_create_empty to avoid warnings and be safe. --- diff --git a/backend/ipp.c b/backend/ipp.c index 23255b71d0..9f783b8598 100644 --- a/backend/ipp.c +++ b/backend/ipp.c @@ -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]); @@ -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);