Skip to content

Commit

Permalink
Fix some XS9 warnings (#6066)
Browse files Browse the repository at this point in the history
Fix a warning reported by newer systemd as well as a build warning I
noticed when building with a newer GCC.
  • Loading branch information
psafont authored Nov 6, 2024
2 parents baf7cbd + e3f9213 commit 3d3bd23
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions ocaml/forkexecd/lib/fe_systemctl.ml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ let start_transient ?(env = Array.of_list default_env) ?(properties = [])
)
; ("SyslogIdentifier", syslog_key)
; ("SyslogLevel", "debug")
; ("StandardOutput", "syslog")
; ("StandardError", "inherit")
; ("StartLimitInterval", "0") (* no rate-limit, for bootstorms *)
; ("ExecStart", String.concat " " (cmd :: List.map Filename.quote args))
; ("Type", Type.to_string exec_ty)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
for (i = 0; i < len % 4; i++)
if (s[i] != 0)
goto notallzero;
Expand Down
2 changes: 0 additions & 2 deletions scripts/varstored-guard.service
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ PartOf=toolstack.target
Type=simple
Environment=OCAMLRUNPARAM=b
ExecStart=/usr/sbin/varstored-guard
# Needed to ensure exceptions are logged when the program fails:
StandardError=syslog
LimitNOFILE=4096
# restart but fail if more than 5 failures in 30s
Restart=on-failure
Expand Down
1 change: 0 additions & 1 deletion scripts/xapi-nbd.service
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ Environment=OCAMLRUNPARAM=b
# and the PathExists in xapi-nbd.path: any change must be made in all three files.
ExecStart=/usr/sbin/xapi-nbd --certfile=/etc/xensource/xapi-ssl.pem
StandardOutput=null
StandardError=syslog
# restart but fail if more than 5 failures in 2s
Restart=on-failure
StartLimitBurst=5
Expand Down

0 comments on commit 3d3bd23

Please sign in to comment.