From 5c30cce9a83e06a6a2fa08678ea16d5a44c759fa Mon Sep 17 00:00:00 2001 From: Ben Brewer Date: Thu, 29 May 2014 15:54:44 +0100 Subject: Make TB_DIFF_PROTOCOL_ID a static const char for type safety --- tbdiff/tbdiff-private.h | 4 ++-- 1 file 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__ */ -- cgit v1.2.1