From d0c4135f8ed7cc28b98217318252f2ef1c0ab491 Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Sat, 6 Apr 2024 21:16:39 +0200 Subject: [PATCH] Add `pub` access modifier to publicly used struct fields --- common/common.v | 5 +++-- common/readutmp_nix.c.v | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/common/common.v b/common/common.v index e03842d2..dde70b43 100644 --- a/common/common.v +++ b/common/common.v @@ -16,10 +16,11 @@ pub: } pub struct CoreutilExitDetail { +pub: message string -mut: - return_code int = 1 +pub mut: show_help_advice bool // defaults to false + return_code int = 1 } // coreutils_version returns formatted coreutils tool version diff --git a/common/readutmp_nix.c.v b/common/readutmp_nix.c.v index 7e22f1de..61a2ccd4 100644 --- a/common/readutmp_nix.c.v +++ b/common/readutmp_nix.c.v @@ -14,6 +14,7 @@ pub struct C.timeval { // pub struct C.timeval { +pub: tv_sec u64 // Seconds. tv_usec u64 // Microseconds. }