warning cleanup
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5223 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
0e14e818cb
commit
5e69d7c826
@ -35,8 +35,8 @@ DeskButton::DeskButton(BRect frame, entry_ref *entry_ref, const char *name, BLis
|
||||
uint32 resizeMask, uint32 flags)
|
||||
: BView(frame, name, resizeMask, flags),
|
||||
ref(*entry_ref),
|
||||
titleList(titles),
|
||||
actionList(actions)
|
||||
actionList(actions),
|
||||
titleList(titles)
|
||||
{
|
||||
// Background Color
|
||||
SetViewColor(184,184,184);
|
||||
|
@ -309,7 +309,7 @@ main(int, char **argv)
|
||||
const char *name=scratch;
|
||||
if (db.GetItemInfo(i, &name) >= B_OK) {
|
||||
found++;
|
||||
printf("Item %d: '%s'\n", i, name);
|
||||
printf("Item %ld: '%s'\n", i, name);
|
||||
free((void *)name); /* INTENDED */
|
||||
}
|
||||
}
|
||||
@ -319,13 +319,13 @@ main(int, char **argv)
|
||||
if (strcmp(argv[i], "--remove") == 0) {
|
||||
BDeskbar db;
|
||||
int32 found = 0;
|
||||
int32 count = db.CountItems();
|
||||
uint32 count = db.CountItems();
|
||||
/* BDeskbar is definitely doomed ! */
|
||||
while ((db.RemoveItem("DeskButton") == B_OK) && (db.CountItems() < count)) {
|
||||
count = db.CountItems();
|
||||
found++;
|
||||
}
|
||||
printf("removed %d items.\n", found);
|
||||
printf("removed %ld items.\n", found);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user