diff --git a/src/apps/bin/desklink/DeskButton.cpp b/src/apps/bin/desklink/DeskButton.cpp index 38328e3578..c6b77a4e49 100644 --- a/src/apps/bin/desklink/DeskButton.cpp +++ b/src/apps/bin/desklink/DeskButton.cpp @@ -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); diff --git a/src/apps/bin/desklink/desklink.cpp b/src/apps/bin/desklink/desklink.cpp index 2e14ade03d..12d571e587 100644 --- a/src/apps/bin/desklink/desklink.cpp +++ b/src/apps/bin/desklink/desklink.cpp @@ -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; }