pidref: fix typo

Follow-up for de34ec188c.
This commit is contained in:
Yu Watanabe
2024-10-17 00:46:42 +09:00
parent e776ab8e21
commit 6a6c0dab30
2 changed files with 2 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ struct PidRef {
#define PIDREF_NULL (const PidRef) { .fd = -EBADF }
/* A special pidref value that we are using when a PID shall be automatically acquired from some surrounding
* context, for example connection peer. Much like PIDREF_NULL it will be considerd unset by
* context, for example connection peer. Much like PIDREF_NULL it will be considered unset by
* pidref_is_set().*/
#define PIDREF_AUTOMATIC (const PidRef) { .pid = PID_AUTOMATIC, .fd = -EBADF }

View File

@@ -231,7 +231,7 @@ int json_dispatch_pidref(const char *name, sd_json_variant *variant, sd_json_dis
} else
return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "JSON field '%s' is neither a numeric PID nor a PID object.", strna(name));
/* If SD_JSON_RELAX is set then we'll take a specified but zero field as request for "automic" PID derivation */
/* If SD_JSON_RELAX is set then we'll take a specified but zero field as request for "automatic" PID derivation */
if ((flags & SD_JSON_RELAX) && data.pid == 0 && data.fd_id == 0 && sd_id128_is_null(data.boot_id)) {
pidref_done(p);
*p = PIDREF_AUTOMATIC;