diff --git a/headers/private/media/TList.h b/headers/private/media/TList.h index cc76b55704..c4ee13de03 100644 --- a/headers/private/media/TList.h +++ b/headers/private/media/TList.h @@ -36,6 +36,7 @@ public: items[i] = new value; *items[i] = *other.items[i]; } + return *this; } bool Insert(const value &v) diff --git a/headers/private/media/TMap.h b/headers/private/media/TMap.h index ce58413132..c938702461 100644 --- a/headers/private/media/TMap.h +++ b/headers/private/media/TMap.h @@ -38,6 +38,7 @@ public: items[i]->k = other.items[i]->k; items[i]->v = other.items[i]->v; } + return *this; } bool Insert(const key &k, const value &v) diff --git a/src/kits/media/RealtimeAlloc.cpp b/src/kits/media/RealtimeAlloc.cpp index 4cba2ea843..fe74c75971 100644 --- a/src/kits/media/RealtimeAlloc.cpp +++ b/src/kits/media/RealtimeAlloc.cpp @@ -78,7 +78,7 @@ status_t rtm_size_for(void * data) status_t rtm_phys_size_for(void * data) { UNIMPLEMENTED(); - TRACE(" ptr = %p\n",(int)data); + TRACE(" ptr = %p\n", data); return 0; } @@ -86,7 +86,7 @@ rtm_pool * rtm_default_pool() { BROKEN(); /* Return the default pool, or NULL if not yet initialized */ - TRACE(" returning pool = %p\n", 0x22229999); + TRACE(" returning pool = %p\n", (void *) 0x22229999); return (rtm_pool *) 0x22229999; } diff --git a/src/kits/media/VolumeControl.cpp b/src/kits/media/VolumeControl.cpp index 4e53706e0e..4095ddd14a 100644 --- a/src/kits/media/VolumeControl.cpp +++ b/src/kits/media/VolumeControl.cpp @@ -14,10 +14,12 @@ namespace MediaKitPrivate { status_t GetMasterVolume(float *left, float *right) { + return B_OK; } status_t SetMasterVolume(float left, float right) { + return B_OK; } } //namespace MediaKitPrivate diff --git a/src/servers/media/NodeManager.cpp b/src/servers/media/NodeManager.cpp index 7d46ee270d..bd9f0ac1cd 100644 --- a/src/servers/media/NodeManager.cpp +++ b/src/servers/media/NodeManager.cpp @@ -585,7 +585,7 @@ NodeManager::Dump() printf("NodeManager: registered nodes map follows:\n"); registered_node *rn; for (fRegisteredNodeMap->Rewind(); fRegisteredNodeMap->GetNext(&rn); ) { - printf(" node-id %ld, addon-id %ld, addon-flavor-id %ld, port %ld, team %ld, kinds %#08x, name \"%s\"\n", + printf(" node-id %ld, addon-id %ld, addon-flavor-id %ld, port %ld, team %ld, kinds %#08Lx, name \"%s\"\n", rn->nodeid, rn->addon_id, rn->addon_flavor_id, rn->port, rn->team, rn->kinds, rn->name); printf(" teams (refcount): "); team_id *team; @@ -613,7 +613,7 @@ NodeManager::Dump() for (fDormantFlavorList->Rewind(); fDormantFlavorList->GetNext(&dfi); ) { printf(" addon-id %ld, addon-flavor-id %ld, addon-name \"%s\"\n", dfi->node_info.addon, dfi->node_info.flavor_id, dfi->node_info.name); - printf(" flavor-kinds %#08x, flavor_flags %#08x, internal_id %ld, possible_count %ld, in_format_count %ld, out_format_count %ld\n", + printf(" flavor-kinds %#08Lx, flavor_flags %#08lx, internal_id %ld, possible_count %ld, in_format_count %ld, out_format_count %ld\n", dfi->kinds, dfi->flavor_flags, dfi->internal_id, dfi->possible_count, dfi->in_format_count, dfi->out_format_count); printf(" flavor-name \"%s\"\n", dfi->name); printf(" flavor-info \"%s\"\n", dfi->info); diff --git a/src/servers/media/NotificationManager.cpp b/src/servers/media/NotificationManager.cpp index b54bffc305..fab41cc7be 100644 --- a/src/servers/media/NotificationManager.cpp +++ b/src/servers/media/NotificationManager.cpp @@ -259,7 +259,7 @@ NotificationManager::Dump() printf("NotificationManager: list of subscribers follows:\n"); Notification *n; for (fNotificationList->Rewind(); fNotificationList->GetNext(&n); ) { - printf(" team %ld, what %#08x, node-id %ld, node-port %ld, messenger %svalid\n", + printf(" team %ld, what %#08lx, node-id %ld, node-port %ld, messenger %svalid\n", n->team, n->what, n->node.node, n->node.port, n->messenger.IsValid() ? "" : "NOT "); } printf("NotificationManager: list end\n");