diff options
author | leo-arch <leonardoabramovich2@gmail.com> | 2022-07-25 00:28:28 -0300 |
---|---|---|
committer | leo-arch <leonardoabramovich2@gmail.com> | 2022-07-25 00:28:28 -0300 |
commit | 29d537bf5405b6f61e620075740ebafcd7505532 (patch) | |
tree | 72d8f43c0a98bc15e7c893b88c0e2211a326cc11 | |
parent | c672645d83ce280d7145b5f57e7a05b03e71bbfc (diff) |
Fix compilation warnings on i386
-rw-r--r-- | src/history.c | 2 | ||||
-rw-r--r-- | src/history.h | 2 | ||||
-rw-r--r-- | src/properties.c | 6 |
3 files changed, 6 insertions, 4 deletions
diff --git a/src/history.c b/src/history.c index 252c5078..cd2ceeed 100644 --- a/src/history.c +++ b/src/history.c @@ -282,7 +282,7 @@ send_desktop_notification(char *msg) * Finally, if logs are enabled and LOGME is 1, write the message into the log * file as follows: "[date] msg", where 'date' is YYYY-MM-DDTHH:MM:SS */ void -log_msg(char *_msg, int print_prompt, int logme, int add_to_msgs_list) +log_msg(char *_msg, const int print_prompt, const int logme, const int add_to_msgs_list) { if (!_msg) return; diff --git a/src/history.h b/src/history.h index 020d2aab..adf0d283 100644 --- a/src/history.h +++ b/src/history.h @@ -30,7 +30,7 @@ void add_to_dirhist(const char *dir_path); int get_history(void); int history_function(char **comm); int log_function(char **comm); -void log_msg(char *_msg, int print_prompt, int logme, int add_to_msgs_list); +void log_msg(char *_msg, const int print_prompt, const int logme, const int add_to_msgs_list); int record_cmd(char *input); int run_history_cmd(const char *cmd); int save_dirhist(void); diff --git a/src/properties.c b/src/properties.c index fc0a2990..57cfbe13 100644 --- a/src/properties.c +++ b/src/properties.c @@ -407,7 +407,7 @@ get_properties(char *filename, const int dsize) if (colorize == 1) printf("%s", cend); -#if defined(__OpenBSD__) || defined(__APPLE__) +#if defined(__OpenBSD__) || defined(__APPLE__) || defined(__i386__) printf(_("\tBlocks: %s%lld%s"), cbold, attr.st_blocks, cend); #else printf(_("\tBlocks: %s%ld%s"), cbold, attr.st_blocks, cend); @@ -418,13 +418,15 @@ get_properties(char *filename, const int dsize) #else printf(_("\tIO Block: %s%ld%s"), cbold, attr.st_blksize, cend); #endif -#if defined(__OpenBSD__) || defined(__APPLE__) +#if defined(__OpenBSD__) || defined(__APPLE__) || defined(__i386__) printf(_("\tInode: %s%llu%s\n"), cbold, attr.st_ino, cend); #else printf(_("\tInode: %s%zu%s\n"), cbold, attr.st_ino, cend); #endif #if defined(__OpenBSD__) || defined(__APPLE__) || defined(__HAIKU__) printf(_("Device: %s%d%s"), cbold, attr.st_dev, cend); +#elif defined(__i386__) + printf(_("Device: %s%lld%s"), cbold, attr.st_dev, cend); #else printf(_("Device: %s%zu%s"), cbold, attr.st_dev, cend); #endif |