Merge pull request #7801 from keszybz/docs-and-coverity

Docs and coverity
This commit is contained in:
Lennart Poettering 2018-01-04 12:38:27 +01:00 committed by GitHub
commit 3282774050
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 8 deletions

View file

@ -1114,7 +1114,7 @@
<example>
<title>Spawn a shell in a container of a minimal Debian unstable distribution</title>
<programlisting># debootstrap --arch=amd64 unstable ~/debian-tree/
<programlisting># debootstrap unstable ~/debian-tree/
# systemd-nspawn -D ~/debian-tree/</programlisting>
<para>This installs a minimal Debian unstable distribution into

View file

@ -373,10 +373,8 @@ static int bus_timer_set_transient_property(
unit_write_settingf(u, flags|UNIT_ESCAPE_SPECIFIERS, name, "%s=%s", name, str);
v = new0(TimerValue, 1);
if (!v) {
calendar_spec_free(c);
if (!v)
return -ENOMEM;
}
v->base = TIMER_CALENDAR;
v->calendar_spec = c;

View file

@ -2182,7 +2182,7 @@ static int initialize_security(
dual_timestamp_get(security_start_timestamp);
r = mac_selinux_setup(loaded_policy) < 0;
r = mac_selinux_setup(loaded_policy);
if (r < 0) {
*ret_error_message = "Failed to load SELinux policy";
return r;

View file

@ -120,7 +120,7 @@ static void help(void) {
}
static int add_timer_property(const char *name, const char *val) {
_cleanup_free_ char *p = NULL;
char *p;
assert(name);
assert(val);
@ -132,8 +132,6 @@ static int add_timer_property(const char *name, const char *val) {
if (strv_consume(&arg_timer_property, p) < 0)
return log_oom();
p = NULL;
return 0;
}

View file

@ -62,6 +62,7 @@ int main(void) {
info(usec_t);
info(__time_t);
info(pid_t);
info(uid_t);
info(gid_t);
info(enum Enum);