Fixed some minor warnings in the Linux build environment.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19110 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-10-24 13:24:40 +00:00
parent 6b376d6055
commit 8ac8898872
3 changed files with 4 additions and 4 deletions

View File

@ -1027,7 +1027,7 @@ BEntry::Dump(const char *name)
if (fDirFd != -1
&& _kern_read_stat(fDirFd, NULL, false, &st,
sizeof(struct stat)) == B_OK) {
printf("dir.device == %ld\n", st.st_dev);
printf("dir.device == %d\n", (int)st.st_dev);
printf("dir.inode == %lld\n", st.st_ino);
} else {
printf("dir == NullFd\n");

View File

@ -643,7 +643,7 @@ BNodeInfo::GetTrackerIcon(BBitmap *icon, icon_size iconSize) const
type.SetTo(B_FILE_MIME_TYPE);
} else if (S_ISDIR(stat.st_mode)) {
// it's either a volume or just a standard directory
fs_info info;
// fs_info info;
// if (fs_stat_dev(stat.st_dev, &info) == 0 && stat.st_ino == info.root)
// type.SetTo(B_VOLUME_MIME_TYPE);
// else

View File

@ -300,8 +300,8 @@ BBufferIO::PrintToStream() const
printf("stream %p\n", m_stream);
printf("buffer %p\n", m_buffer);
printf("start %lld\n", m_buffer_start);
printf("used %ld\n", m_buffer_used);
printf("phys %ld\n", m_buffer_phys);
printf("used %u\n", m_buffer_used);
printf("phys %u\n", m_buffer_phys);
printf("dirty %s\n", (m_buffer_dirty) ? "true" : "false");
printf("owns %s\n", (m_owns_stream) ? "true" : "false");
}