summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-01-16 14:43:54 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-01-16 14:43:54 (GMT)
commit3cca39b46db715bcfdc7fc4a02210c8ab4cf572f (patch)
tree3d8a4ede88bca234fac89226b6d9e3ae5a1b212f /Utilities
parent9d4ef584626c4efc882f362e7d46e9b2d8c66045 (diff)
parent6b9a0e17970391d2f7143ed9c600d5ea50dd6b98 (diff)
downloadCMake-3cca39b46db715bcfdc7fc4a02210c8ab4cf572f.zip
CMake-3cca39b46db715bcfdc7fc4a02210c8ab4cf572f.tar.gz
CMake-3cca39b46db715bcfdc7fc4a02210c8ab4cf572f.tar.bz2
Merge topic 'libarchive-constify-internal-get_date'
6b9a0e17 libarchive: Constify internal __archive_get_date implementation
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmlibarchive/libarchive/archive_getdate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Utilities/cmlibarchive/libarchive/archive_getdate.c b/Utilities/cmlibarchive/libarchive/archive_getdate.c
index aaa9d6f..f665e2d 100644
--- a/Utilities/cmlibarchive/libarchive/archive_getdate.c
+++ b/Utilities/cmlibarchive/libarchive/archive_getdate.c
@@ -39,7 +39,7 @@ __FBSDID("$FreeBSD$");
#include <time.h>
/* This file defines a single public function. */
-time_t __archive_get_date(time_t now, char *);
+time_t __archive_get_date(time_t now, const char *);
/* Basic time units. */
#define EPOCH 1970
@@ -782,7 +782,7 @@ RelativeMonth(time_t Start, time_t Timezone, time_t RelMonth)
* Tokenizer.
*/
static int
-nexttoken(char **in, time_t *value)
+nexttoken(const char **in, time_t *value)
{
char c;
char buff[64];
@@ -809,7 +809,7 @@ nexttoken(char **in, time_t *value)
/* Try the next token in the word table first. */
/* This allows us to match "2nd", for example. */
{
- char *src = *in;
+ const char *src = *in;
const struct LEXICON *tp;
unsigned i = 0;
@@ -894,7 +894,7 @@ difftm (struct tm *a, struct tm *b)
* TODO: tokens[] array should be dynamically sized.
*/
time_t
-__archive_get_date(time_t now, char *p)
+__archive_get_date(time_t now, const char *p)
{
struct token tokens[256];
struct gdstate _gds;