summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorR. Diez <rdiezmail-rtems@yahoo.de>2013-08-06 10:58:58 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-08-06 11:02:56 +0200
commitffa2defc78f0ec60761952b512880cc00f13608e (patch)
tree150a7220205cc475384bc6c9f0dd65e811e4f493
parentcorrect comments about atomic api (diff)
downloadrtems-ffa2defc78f0ec60761952b512880cc00f13608e.tar.bz2
Fix compiler warnings
-rw-r--r--cpukit/libfs/src/rfs/rtems-rfs-format.c2
-rw-r--r--cpukit/libmisc/shell/main_lsof.c10
-rw-r--r--cpukit/posix/src/cleanuppush.c2
3 files changed, 7 insertions, 7 deletions
diff --git a/cpukit/libfs/src/rfs/rtems-rfs-format.c b/cpukit/libfs/src/rfs/rtems-rfs-format.c
index 096db839f8..47da939a7e 100644
--- a/cpukit/libfs/src/rfs/rtems-rfs-format.c
+++ b/cpukit/libfs/src/rfs/rtems-rfs-format.c
@@ -48,7 +48,7 @@ rtems_rfs_bits_per_block (rtems_rfs_file_system* fs)
* Return a rounded up integer quotient given a dividend and divisor. That is:
* "quotient = dividend / divisor"
*/
-int
+static int
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)
{
if (dividend == 0)
diff --git a/cpukit/libmisc/shell/main_lsof.c b/cpukit/libmisc/shell/main_lsof.c
index 2c6ece1653..73c1731cb2 100644
--- a/cpukit/libmisc/shell/main_lsof.c
+++ b/cpukit/libmisc/shell/main_lsof.c
@@ -45,8 +45,8 @@ static void lsof(void)
mt_entry->type,
mt_entry->target,
mt_entry->dev == NULL ? "none" : mt_entry->dev,
- mt_entry->mt_fs_root,
- mt_entry->mt_fs_root->location.node_access
+ (unsigned)mt_entry->mt_fs_root,
+ (unsigned)mt_entry->mt_fs_root->location.node_access
);
for (
@@ -55,13 +55,13 @@ static void lsof(void)
mt_entry_node = rtems_chain_next( mt_entry_node )
) {
const rtems_filesystem_location_info_t *loc =
- (rtems_filesystem_location_info_t *) mt_entry_node;
+ (const rtems_filesystem_location_info_t *) mt_entry_node;
fprintf(
stdout,
"\t0x%08x -> 0x%08x\n",
- loc,
- loc->node_access
+ (unsigned)loc,
+ (unsigned)loc->node_access
);
}
}
diff --git a/cpukit/posix/src/cleanuppush.c b/cpukit/posix/src/cleanuppush.c
index f27ab7947a..84dbc0043d 100644
--- a/cpukit/posix/src/cleanuppush.c
+++ b/cpukit/posix/src/cleanuppush.c
@@ -22,7 +22,7 @@
#include <errno.h>
#include <rtems/system.h>
-#include <rtems/score/chain.h>
+#include <rtems/score/chainimpl.h>
#include <rtems/score/isr.h>
#include <rtems/score/thread.h>
#include <rtems/score/wkspace.h>