diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-01-10 09:05:49 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-01-10 09:06:56 +0100 |
commit | 7bde91bd5fd20e2c0c91193728c793e0675bdc03 (patch) | |
tree | 396a0aa9a2b80eafb01eb9671c57bd17c7a62f43 /cpukit/libmisc/shell/main_rm.c | |
parent | psxconfig01: Fix pre-processor conditions (diff) | |
download | rtems-7bde91bd5fd20e2c0c91193728c793e0675bdc03.tar.bz2 |
Fix format warnings due to ino_t changes
Diffstat (limited to 'cpukit/libmisc/shell/main_rm.c')
-rw-r--r-- | cpukit/libmisc/shell/main_rm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpukit/libmisc/shell/main_rm.c b/cpukit/libmisc/shell/main_rm.c index c8dabe73f4..ab712d59f9 100644 --- a/cpukit/libmisc/shell/main_rm.c +++ b/cpukit/libmisc/shell/main_rm.c @@ -48,6 +48,7 @@ __FBSDID("$FreeBSD: src/bin/rm/rm.c,v 1.58 2006/10/31 02:22:36 delphij Exp $"); #endif #include <rtems.h> +#include <rtems/inttypes.h> #include <rtems/shell.h> #include <rtems/shellconfig.h> #define __need_getopt_newlib @@ -493,8 +494,9 @@ rm_overwrite_rm(rtems_shell_rm_globals* globals, char *file, struct stat *sbp) if (!S_ISREG(sbp->st_mode)) return (1); if (sbp->st_nlink > 1 && !fflag) { - warnx("%s (inode %lu): not overwritten due to multiple links", - file, sbp->st_ino); + warnx("%s (inode %" PRIuino_t + "): not overwritten due to multiple links", file, + sbp->st_ino); return (0); } if ((fd = open(file, O_WRONLY, 0)) == -1) |