X Tutup
Skip to content

Commit 22e596d

Browse files
committed
tree-wide: voidify a few calls
1 parent 50ccd86 commit 22e596d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/binfmt/binfmt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ static int run(int argc, char *argv[]) {
213213
}
214214

215215
/* Flush out all rules */
216-
write_string_file("/proc/sys/fs/binfmt_misc/status", "-1", WRITE_STRING_FILE_DISABLE_BUFFER);
216+
(void) write_string_file("/proc/sys/fs/binfmt_misc/status", "-1", WRITE_STRING_FILE_DISABLE_BUFFER);
217217

218218
STRV_FOREACH(f, files) {
219219
k = apply_file(*f, true);

src/firstboot/firstboot.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ static int process_locale(void) {
253253

254254
if (arg_copy_locale && arg_root) {
255255

256-
mkdir_parents(etc_localeconf, 0755);
256+
(void) mkdir_parents(etc_localeconf, 0755);
257257
r = copy_file("/etc/locale.conf", etc_localeconf, 0, 0644, 0, 0, COPY_REFLINK);
258258
if (r != -ENOENT) {
259259
if (r < 0)
@@ -278,7 +278,7 @@ static int process_locale(void) {
278278

279279
locales[i] = NULL;
280280

281-
mkdir_parents(etc_localeconf, 0755);
281+
(void) mkdir_parents(etc_localeconf, 0755);
282282
r = write_env_file(etc_localeconf, locales);
283283
if (r < 0)
284284
return log_error_errno(r, "Failed to write %s: %m", etc_localeconf);
@@ -327,7 +327,7 @@ static int process_keymap(void) {
327327

328328
if (arg_copy_keymap && arg_root) {
329329

330-
mkdir_parents(etc_vconsoleconf, 0755);
330+
(void) mkdir_parents(etc_vconsoleconf, 0755);
331331
r = copy_file("/etc/vconsole.conf", etc_vconsoleconf, 0, 0644, 0, 0, COPY_REFLINK);
332332
if (r != -ENOENT) {
333333
if (r < 0)
@@ -411,7 +411,7 @@ static int process_timezone(void) {
411411
if (r < 0)
412412
return log_error_errno(r, "Failed to read host timezone: %m");
413413

414-
mkdir_parents(etc_localtime, 0755);
414+
(void) mkdir_parents(etc_localtime, 0755);
415415
if (symlink(p, etc_localtime) < 0)
416416
return log_error_errno(errno, "Failed to create %s symlink: %m", etc_localtime);
417417

@@ -429,7 +429,7 @@ static int process_timezone(void) {
429429

430430
e = strjoina("../usr/share/zoneinfo/", arg_timezone);
431431

432-
mkdir_parents(etc_localtime, 0755);
432+
(void) mkdir_parents(etc_localtime, 0755);
433433
if (symlink(e, etc_localtime) < 0)
434434
return log_error_errno(errno, "Failed to create %s symlink: %m", etc_localtime);
435435

@@ -624,7 +624,7 @@ static int process_root_password(void) {
624624
if (laccess(etc_shadow, F_OK) >= 0)
625625
return 0;
626626

627-
mkdir_parents(etc_shadow, 0755);
627+
(void) mkdir_parents(etc_shadow, 0755);
628628

629629
lock = take_etc_passwd_lock(arg_root);
630630
if (lock < 0)

0 commit comments

Comments
 (0)
X Tutup