summaryrefslogtreecommitdiffstats
path: root/src/osc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-28 01:44:21 +0000
committerDavid Robillard <d@drobilla.net>2012-04-28 01:44:21 +0000
commit3f6829abef9cc03bc344c4cad1bc7abe9490d1fd (patch)
treed730acc84e982a5329aacccf7f68b25beb258071 /src/osc
parent70f4bcdde45e94dbe27300a5069994aebc523cab (diff)
downloadingen-3f6829abef9cc03bc344c4cad1bc7abe9490d1fd.tar.gz
ingen-3f6829abef9cc03bc344c4cad1bc7abe9490d1fd.tar.bz2
ingen-3f6829abef9cc03bc344c4cad1bc7abe9490d1fd.zip
Lint.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4289 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/osc')
-rw-r--r--src/osc/OSCClientReceiver.cpp2
-rw-r--r--src/osc/OSCEngineSender.hpp3
-rw-r--r--src/osc/OSCSender.hpp2
3 files changed, 3 insertions, 4 deletions
diff --git a/src/osc/OSCClientReceiver.cpp b/src/osc/OSCClientReceiver.cpp
index 8717af24..7cba4c40 100644
--- a/src/osc/OSCClientReceiver.cpp
+++ b/src/osc/OSCClientReceiver.cpp
@@ -60,7 +60,7 @@ OSCClientReceiver::start(bool dump_osc)
// Attempt preferred port
if (_listen_port != 0) {
char port_str[8];
- snprintf(port_str, 8, "%d", _listen_port);
+ snprintf(port_str, sizeof(port_str), "%d", _listen_port);
_st = lo_server_thread_new(port_str, lo_error_cb);
}
diff --git a/src/osc/OSCEngineSender.hpp b/src/osc/OSCEngineSender.hpp
index d9a34e75..9c1ef2f1 100644
--- a/src/osc/OSCEngineSender.hpp
+++ b/src/osc/OSCEngineSender.hpp
@@ -50,8 +50,7 @@ public:
Raul::URI uri() const { return _engine_url; }
- inline int32_t next_id()
- { int32_t ret = (_id == -1) ? -1 : _id++; return ret; }
+ inline int32_t next_id() { return (_id == -1) ? -1 : _id++; }
void set_response_id(int32_t id) { _id = id; }
diff --git a/src/osc/OSCSender.hpp b/src/osc/OSCSender.hpp
index bff16e08..22a720c2 100644
--- a/src/osc/OSCSender.hpp
+++ b/src/osc/OSCSender.hpp
@@ -26,7 +26,7 @@ namespace Shared {
class OSCSender {
public:
- OSCSender(size_t max_packet_size);
+ explicit OSCSender(size_t max_packet_size);
virtual ~OSCSender() {}
lo_address address() const { return _address; }