* Added B_PRIdTIME and B_PRIiTIME macros (for time_t).

* Added FSSH_[S]SIZE_MAX to headers/private/fs_shell/fssh_types.h.
* Fixed various 64 bit compiler warnings. Nothing too serious, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34241 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2009-11-25 12:02:20 +00:00
parent a79e0ef1ad
commit cf844822db
16 changed files with 104 additions and 81 deletions
+6 -6
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2005, Ingo Weinhold, [email protected].
* Copyright 2005-2009, Ingo Weinhold, [email protected].
* Distributed under the terms of the MIT License.
*/
@@ -364,8 +364,8 @@ struct ListState : State {
size_t size;
for (int32 i = 0;
resources.GetResourceInfo(i, &type, &id, &name, &size); i++) {
printf("'%s' %11ld %11lu %s\n", resource_type(type), id, size,
(name && strlen(name) > 0 ? name : "(no name)"));
printf("'%s' %11" B_PRId32 " %11lu %s\n", resource_type(type), id,
size, (name && strlen(name) > 0 ? name : "(no name)"));
}
}
};
@@ -479,9 +479,9 @@ struct WriteFileState : State {
status_t error = fResources->AddResource(id.type, id.id, data, size,
name);
if (error != B_OK) {
fprintf(stderr, "Error: Failed to add resource type '%s', ID %ld "
"to output file \"%s\": %s\n", resource_type(id.type), id.id,
fOutputFilePath.c_str(), strerror(error));
fprintf(stderr, "Error: Failed to add resource type '%s', ID %"
B_PRId32 " to output file \"%s\": %s\n", resource_type(id.type),
id.id, fOutputFilePath.c_str(), strerror(error));
exit(1);
}
}