Skip to content

Commit

Permalink
align code style
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 committed Aug 14, 2024
1 parent 3dbe22e commit 0677d2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions base64.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static const unsigned char decoding_table[256] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};

char* base64_decode(const char *data) {
char *base64_decode(const char *data) {
size_t input_length = strlen(data);
if (input_length % 4 != 0) {
return NULL;
Expand All @@ -55,7 +55,7 @@ char* base64_decode(const char *data) {
(output_length)--;
}

unsigned char* output = (unsigned char *)malloc(output_length + 1);
unsigned char *output = (unsigned char *)malloc(output_length + 1);
if (output == NULL) {
return NULL;
}
Expand Down
2 changes: 1 addition & 1 deletion base64.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef __BASE64_H__
#define __BASE64_H__

char* base64_decode(const char *data);
char *base64_decode(const char *data);

#endif

0 comments on commit 0677d2d

Please sign in to comment.