]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
pidref: fix typo
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 16 Oct 2024 15:46:42 +0000 (00:46 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 16 Oct 2024 15:46:45 +0000 (00:46 +0900)
Follow-up for de34ec188c4d4f682a337445aa7753259cd7f821.

src/basic/pidref.h
src/libsystemd/sd-json/json-util.c

index 494bc9d8f199cd884962d1ef38588f609bae118d..42ddf4e50bcd963b0b474ff8e21acb4b6ae3d2f6 100644 (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 }
 
index d42c61a69c7c1a00965544201d0f6e8beb22c6fe..a1b2ebc0fe1281e544d8dd65e41ff4e76fefe564 100644 (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;