1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

[const] const char in base64_decode and init_submitted_value

This commit is contained in:
Witold Filipczyk 2022-01-30 14:48:43 +01:00
parent c29e4f3428
commit 91bf93a784
4 changed files with 6 additions and 6 deletions

View File

@ -64,7 +64,7 @@ base64_encode_bin(char *in, int inlen, int *outlen)
}
char *
base64_decode(char *in)
base64_decode(const char *in)
{
assert(in && *in);
if_assert_failed return NULL;
@ -80,7 +80,7 @@ base64_decode(char *in)
* @returns the string decoded (must be freed by the caller)
* or NULL if an error occurred (syntax error or out of memory) */
char *
base64_decode_bin(char *in, int inlen, int *outlen)
base64_decode_bin(const char *in, int inlen, int *outlen)
{
static unsigned char is_base64_char[256]; /* static to force initialization at zero */
static unsigned char decode[256];

View File

@ -6,10 +6,10 @@ extern "C" {
#endif
char *base64_encode(char *);
char *base64_decode(char *);
char *base64_decode(const char *);
char *base64_encode_bin(char *, int, int *);
char *base64_decode_bin(char *, int, int *);
char *base64_decode_bin(const char *, int, int *);
#ifdef __cplusplus
}

View File

@ -74,7 +74,7 @@ struct files_offset {
/** @relates submitted_value */
struct submitted_value *
init_submitted_value(char *name, char *value, enum form_type type,
init_submitted_value(const char *name, char *value, enum form_type type,
struct el_form_control *fc, int position)
{
struct submitted_value *sv;

View File

@ -112,7 +112,7 @@ struct submitted_value {
int position;
};
struct submitted_value *init_submitted_value(char *name, char *value, enum form_type type, struct el_form_control *fc, int position);
struct submitted_value *init_submitted_value(const char *name, char *value, enum form_type type, struct el_form_control *fc, int position);
void done_submitted_value(struct submitted_value *sv);
void done_submitted_value_list(LIST_OF(struct submitted_value) *list);
char *encode_crlf(struct submitted_value *sv);