-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix some XS9 warnings #6066
Fix some XS9 warnings #6066
Conversation
GCC correctly reports "pointer targets differ in signedness". Signed-off-by: Ross Lagerwall <[email protected]>
Newer systemd warns that the "syslog" StandardOutput/StandardError type is deprecated and automatically uses the journal instead. Fix this by removing the explicit setting of StandardOutput/StandardError. Instead, the service will use the default values configured in systemd (DefaultStandardOutput/DefaultStandardError) which for a XenServer system will result in the output going to rsyslog. Signed-off-by: Ross Lagerwall <[email protected]>
There doesn't seem to be that much consistency between the settings of |
|
The service files are in xapi or not, depending on whether they had the service file in the repo or the spec file, back when they were split from xapi. I don't think it's important, and I think they should be hosted in this repository. |
@@ -31,7 +31,7 @@ value is_all_zeros(value string, value length) | |||
for (i = len / 4; i > 0; i--) | |||
if (*p++ != 0) | |||
goto notallzero; | |||
s = (unsigned char *) p; | |||
s = (const char *) p; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a regression but looking at the above code even p
should be a const
pointer. There's also the assumption that sizeof(int) == 4
but I suppose code is not intended to be that portable, although a uint32_t
pointer would maybe be better... or replace the 4
with sizeof(int)
or sizeof(*p)
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this needs to be changed as well?
xen-api/ocaml/forkexecd/lib/fe_systemctl.mli
Lines 35 to 42 in e3f9213
(** [start_transient ?env ?properties ~service cmd args] generates and | |
starts a transient systemd [service] that will execute [cmd args]. | |
stdout/stderr from the service is redirected to syslog with | |
[service] as syslog key. Additional [properties] can be specified | |
that are written into the systemd unit file's [Service] section. By | |
default the service is not auto-restarted when it fails, and there | |
is a 10s timeout between SIGTERM and SIGKILL on stop. On failure it | |
raises [Spawn_internal_error(stderr, stdout, Unix.process_status)] |
Fix a warning reported by newer systemd as well as a build warning I noticed when building with a newer GCC.
Fix a warning reported by newer systemd as well as a build warning I noticed when building with a newer GCC.