tree-wide: insert a space at the end of comments
This commit is contained in:
+1
-1
@@ -720,7 +720,7 @@ int read_full_stream_full(
|
||||
size_t k;
|
||||
|
||||
/* If we shall fail when reading overly large data, then read exactly one byte more than the
|
||||
* specified size at max, since that'll tell us if there's anymore data beyond the limit*/
|
||||
* specified size at max, since that'll tell us if there's anymore data beyond the limit. */
|
||||
if (FLAGS_SET(flags, READ_FULL_FILE_FAIL_WHEN_LARGER) && n_next > size)
|
||||
n_next = size + 1;
|
||||
|
||||
|
||||
+2
-2
@@ -43,7 +43,7 @@ struct PidRef {
|
||||
|
||||
/* 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 considered unset by
|
||||
* pidref_is_set().*/
|
||||
* pidref_is_set(). */
|
||||
#define PIDREF_AUTOMATIC (const PidRef) { .pid = PID_AUTOMATIC, .fd = -EBADF }
|
||||
|
||||
/* Turns a pid_t into a PidRef structure on-the-fly *without* acquiring a pidfd for it. (As opposed to
|
||||
@@ -70,7 +70,7 @@ bool pidref_equal(PidRef *a, PidRef *b);
|
||||
int pidref_set_pid(PidRef *pidref, pid_t pid);
|
||||
int pidref_set_pidstr(PidRef *pidref, const char *pid);
|
||||
int pidref_set_pidfd(PidRef *pidref, int fd);
|
||||
int pidref_set_pidfd_take(PidRef *pidref, int fd); /* takes ownership of the passed pidfd on success*/
|
||||
int pidref_set_pidfd_take(PidRef *pidref, int fd); /* takes ownership of the passed pidfd on success */
|
||||
int pidref_set_pidfd_consume(PidRef *pidref, int fd); /* takes ownership of the passed pidfd in both success and failure */
|
||||
int pidref_set_parent(PidRef *ret);
|
||||
static inline int pidref_set_self(PidRef *pidref) {
|
||||
|
||||
+1
-1
@@ -631,7 +631,7 @@ int strv_insert(char ***l, size_t position, char *value) {
|
||||
n = strv_length(*l);
|
||||
position = MIN(position, n);
|
||||
|
||||
/* check for overflow and increase*/
|
||||
/* check for overflow and increase */
|
||||
if (n > SIZE_MAX - 2)
|
||||
return -ENOMEM;
|
||||
m = n + 2;
|
||||
|
||||
@@ -1636,7 +1636,7 @@ int mktime_or_timegm_usec(
|
||||
|
||||
assert(tm);
|
||||
|
||||
if (tm->tm_year < 69) /* early check for negative (i.e. before 1970) time_t (Note that in some timezones the epoch is in the year 1969!)*/
|
||||
if (tm->tm_year < 69) /* early check for negative (i.e. before 1970) time_t (Note that in some timezones the epoch is in the year 1969!) */
|
||||
return -ERANGE;
|
||||
if ((usec_t) tm->tm_year > CONST_MIN(USEC_INFINITY / USEC_PER_YEAR, (usec_t) TIME_T_MAX / (365U * 24U * 60U * 60U)) - 1900) /* early check for possible overrun of usec_t or time_t */
|
||||
return -ERANGE;
|
||||
|
||||
Reference in New Issue
Block a user