summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Brewer <ben.brewer@codethink.co.uk>2014-05-29 15:54:44 +0100
committerBen Brewer <ben.brewer@codethink.co.uk>2014-05-29 17:43:56 +0100
commit5c30cce9a83e06a6a2fa08678ea16d5a44c759fa (patch)
treee5a3f5f607a894ba6916e3dcde0a1ac51f23add7
parente88762d670d9f5af42ccd97754b97389aa9f963f (diff)
downloadtbdiff-5c30cce9a83e06a6a2fa08678ea16d5a44c759fa.tar.gz
Make TB_DIFF_PROTOCOL_ID a static const char for type safety
-rw-r--r--tbdiff/tbdiff-private.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tbdiff/tbdiff-private.h b/tbdiff/tbdiff-private.h
index 8287670..296dbcb 100644
--- a/tbdiff/tbdiff-private.h
+++ b/tbdiff/tbdiff-private.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2011-2012 Codethink Ltd.
+ * Copyright (C) 2011-2014 Codethink Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License Version 2 as
@@ -22,6 +22,6 @@
#ifndef __TBDIFF_PRIVATE_H__
#define __TBDIFF_PRIVATE_H__
-#define TB_DIFF_PROTOCOL_ID "Codethink:TBDIFFv0"
+static const char* TB_DIFF_PROTOCOL_ID = "Codethink:TBDIFFv0";
#endif /* !__TBDIFF_PRIVATE_H__ */