diff --git a/common/JackClient.cpp b/common/JackClient.cpp index 92cd07da..3b98c767 100644 --- a/common/JackClient.cpp +++ b/common/JackClient.cpp @@ -507,7 +507,7 @@ int JackClient::PortRegister(const char* port_name, const char* port_type, unsig } int result = -1; - unsigned int port_index = NO_PORT; + jack_port_id_t port_index = NO_PORT; fChannel->PortRegister(GetClientControl()->fRefNum, name.c_str(), port_type, flags, buffer_size, &port_index, &result); if (result == 0) { diff --git a/posix/JackRequest.h b/posix/JackRequest.h index a94ed7b3..e0cf2e71 100644 --- a/posix/JackRequest.h +++ b/posix/JackRequest.h @@ -244,7 +244,7 @@ struct JackClientOpenResult : public JackResult CheckRes(trans->Read(&fSharedEngine, sizeof(int))); CheckRes(trans->Read(&fSharedClient, sizeof(int))); CheckRes(trans->Read(&fSharedGraph, sizeof(int))); - return 0; + return 0; } int Write(JackChannelTransaction* trans) @@ -392,7 +392,7 @@ struct JackPortRegisterRequest : public JackRequest struct JackPortRegisterResult : public JackResult { - unsigned int fPortIndex; + jack_port_id_t fPortIndex; JackPortRegisterResult(): JackResult(), fPortIndex(NO_PORT) {} @@ -418,11 +418,11 @@ struct JackPortUnRegisterRequest : public JackRequest { int fRefNum; - int fPortIndex; + jack_port_id_t fPortIndex; JackPortUnRegisterRequest() {} - JackPortUnRegisterRequest(int refnum, int index) + JackPortUnRegisterRequest(int refnum, jack_port_id_t index) : JackRequest(JackRequest::kUnRegisterPort), fRefNum(refnum), fPortIndex(index) {}