From 479e48f8e65ffdbc6ceae3189e71ac40b5d85d8e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 18 Dec 2013 01:11:54 +0300 Subject: add restrict into base64. --- src/utils/base64.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/utils/base64.cpp') diff --git a/src/utils/base64.cpp b/src/utils/base64.cpp index 0d9563eac..280e71ff0 100644 --- a/src/utils/base64.cpp +++ b/src/utils/base64.cpp @@ -43,8 +43,8 @@ static char base64_table[] = }; static const char base64_pad = '='; -unsigned char *php3_base64_encode(const unsigned char *const string, - int length, int *const ret_length) +unsigned char *php3_base64_encode(const unsigned char *restrict const string, + int length, int *restrict const ret_length) { const unsigned char *current = string; int i = 0; @@ -93,8 +93,9 @@ unsigned char *php3_base64_encode(const unsigned char *const string, } /* as above, but backwards. :) */ -unsigned char *php3_base64_decode(const unsigned char *const string, - const int length, int *const ret_length) +unsigned char *php3_base64_decode(const unsigned char *restrict const string, + const int length, + int *restrict const ret_length) { const unsigned char *current = string; int ch, i = 0, j = 0, k; -- cgit v1.2.3-70-g09d2