fixes gcc4 warning

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30628 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2009-05-04 19:08:27 +00:00
parent 7c9776248b
commit 0b218f6dd7
+4 -4
View File
@@ -354,7 +354,7 @@ struct ListState : State {
resources.GetResourceInfo(i, &type, &id, &name, &size); resources.GetResourceInfo(i, &type, &id, &name, &size);
i++) { i++) {
printf("'%s' %11ld %11lu %s\n", resource_type(type), id, size, printf("'%s' %11ld %11u %s\n", resource_type(type), id, size,
(name && strlen(name) > 0 ? name : "(no name)")); (name && strlen(name) > 0 ? name : "(no name)"));
} }
} }
@@ -452,8 +452,8 @@ struct WriteFileState : State {
_PrepareOutput(); _PrepareOutput();
// filter resource // filter resource
if (fInclusionPattern && !fInclusionPattern->Matches(id) if ((fInclusionPattern && !fInclusionPattern->Matches(id))
|| fExclusionPattern && fExclusionPattern->Matches(id)) { || (fExclusionPattern && fExclusionPattern->Matches(id))) {
// not included or explicitly excluded // not included or explicitly excluded
return; return;
} }
@@ -862,7 +862,7 @@ main(int argc, const char *const *argv)
// don't allow "-l" together with other comands or without at least one // don't allow "-l" together with other comands or without at least one
// input file // input file
if (list && noList || list && !hasInputFiles) if ((list && noList) || (list && !hasInputFiles))
print_usage_and_exit(true); print_usage_and_exit(true);
// create a state // create a state