Fixed warnings.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6648 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-02-19 06:58:53 +00:00
parent 8afcf72a6a
commit 7a3ca20551
3 changed files with 9 additions and 9 deletions

View File

@ -45,12 +45,12 @@ status_t dump_page(BFile* jobFile) {
int32 pictureCount;
status_t rc = B_OK;
jobFile->Read(&pictureCount, sizeof(pictureCount));
printf("Pictures %d\n", pictureCount);
printf("Pictures %ld\n", pictureCount);
for (int i = 0; rc == B_OK && i < pictureCount; i ++) {
BPoint p; BRect r;
off_t v;
jobFile->Read(&v, sizeof(v));
printf("next picture %lx %lx %lx\n", jobFile->Position(), v, v + jobFile->Position());
printf("next picture %Lx %Lx %Lx\n", jobFile->Position(), v, v + jobFile->Position());
jobFile->Seek(40, SEEK_CUR);
jobFile->Read(&p, sizeof(p));
@ -86,7 +86,7 @@ int main(int argc, char* argv[]) {
PrintJobPage pjp;
if (reader.GetPage(page, pjp) == B_OK) {
BPicture picture; BPoint p; BRect r;
printf("Number of pictures %d\n", pjp.NumberOfPictures());
printf("Number of pictures %ld\n", pjp.NumberOfPictures());
while (pjp.NextPicture(picture, p, r) == B_OK) {
printf("Picture point (%f, %f) rect [l: %f t: %f r: %f b: %f]\n",
p.x, p.y,

View File

@ -29,6 +29,11 @@ THE SOFTWARE.
#include "TestView.hpp"
static int NextNum() {
static int n = 0;
return n ++;
}
static BPoint NextPoint() {
return BPoint(NextNum(), NextNum());
}

View File

@ -44,9 +44,4 @@ public:
bool Test(int no, BString& name);
};
static int NextNum() {
static int n = 0;
return n ++;
}
#endif
#endif /* TESTVIEW_HPP */