aboutsummaryrefslogtreecommitdiff
path: root/lib/cmyth
diff options
context:
space:
mode:
authorDavid Teirney <david@teirney.net>2012-06-24 14:06:47 +1200
committerDavid Teirney <david@teirney.net>2012-07-09 23:27:25 +1200
commit207a952d8a8cd36271b8312860e052b0af03ba74 (patch)
treec779d92d42bfddf7de5b7819bd3eb999706bf91c /lib/cmyth
parentf7be65e1f3d6e62ad55c8ae9cef221268f66c6ab (diff)
Change protocol version in token map to be unsigned int as it can never be negative.
Diffstat (limited to 'lib/cmyth')
-rw-r--r--lib/cmyth/libcmyth/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cmyth/libcmyth/connection.c b/lib/cmyth/libcmyth/connection.c
index 7f80f4694d..16fe074bd1 100644
--- a/lib/cmyth/libcmyth/connection.c
+++ b/lib/cmyth/libcmyth/connection.c
@@ -35,7 +35,7 @@ static char * cmyth_conn_get_setting_unlocked(cmyth_conn_t conn, const char* hos
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
typedef struct {
- int version;
+ unsigned int version;
char token[9]; // 8 characters + the terminating NULL character
} myth_protomap_t;