tree-wide: fix typo and comment style update

This commit is contained in:
Yu Watanabe
2023-02-15 10:08:16 +09:00
parent 0da4cc97b4
commit 0b75493da0
25 changed files with 27 additions and 27 deletions
+1 -1
View File
@@ -504,7 +504,7 @@ int read_virtual_file_fd(int fd, size_t max_size, char **ret_contents, size_t *r
* at least one more byte to be able to distinguish EOF from truncation. */
if (max_size != SIZE_MAX && n > max_size) {
n = size; /* Make sure we never use more than what we sized the buffer for (so that
* we have one free byte in it for the trailing NUL we add below).*/
* we have one free byte in it for the trailing NUL we add below). */
truncated = true;
break;
}
+1 -1
View File
@@ -58,7 +58,7 @@
#define UDF_SUPER_MAGIC 0x15013346
#endif
/* b1123ea6d3b3da25af5c8a9d843bd07ab63213f4 (4.8)*/
/* b1123ea6d3b3da25af5c8a9d843bd07ab63213f4 (4.8) */
#ifndef BALLOON_KVM_MAGIC
#define BALLOON_KVM_MAGIC 0x13661366
#endif
+1 -1
View File
@@ -171,7 +171,7 @@ int open_extension_release(const char *root, const char *extension, bool relax_e
/* We already found what we were looking for, but there's another candidate?
* We treat this as an error, as we want to enforce that there are no ambiguities
* in case we are in the fallback path.*/
* in case we are in the fallback path. */
if (r == 0) {
r = -ENOTUNIQ;
break;
+1 -1
View File
@@ -111,7 +111,7 @@ typedef enum ColorMode {
/* Only 256 colors. */
COLOR_256,
/* For truecolor or 24bit color support.*/
/* For truecolor or 24bit color support. */
COLOR_24BIT,
_COLOR_INVALID = -EINVAL,