diff options
author | Ben Brewer <ben.brewer@codethink.co.uk> | 2014-05-29 15:54:44 +0100 |
---|---|---|
committer | Ben Brewer <ben.brewer@codethink.co.uk> | 2014-06-02 11:03:00 +0100 |
commit | 83990c46886eaecd3b6ad3c4ebbc67757514f8ee (patch) | |
tree | b9e7520c7c11d4bd927abeb66b0c87f9396faf57 | |
parent | ab5dbf22791338239c72c8e9a0a1ae4dd5523e1b (diff) | |
download | tbdiff-83990c46886eaecd3b6ad3c4ebbc67757514f8ee.tar.gz |
Make TB_DIFF_PROTOCOL_ID a static const char for type safety
-rw-r--r-- | tbdiff/tbdiff-private.h | 4 |
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__ */ |