-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<stdint.h> provides `uint32_t`, while `u_int_32` is an unofficial/internal typedef that glibc happens to provide. This fixes the build on musl. Bug: https://bugs.gentoo.org/931194 Signed-off-by: Sam James <[email protected]>
- Loading branch information
1 parent
4382dc0
commit eb99b0c
Showing
2 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
* Author: Hannes Reinecke <[email protected]> | ||
*/ | ||
|
||
#include <stdint.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
#include <errno.h> | ||
|
@@ -29,7 +30,7 @@ static const char base64_table[65] = | |
int base64_encode(const unsigned char *src, int srclen, char *dst) | ||
{ | ||
int i, bits = 0; | ||
u_int32_t ac = 0; | ||
uint32_t ac = 0; | ||
char *cp = dst; | ||
|
||
for (i = 0; i < srclen; i++) { | ||
|
@@ -64,7 +65,7 @@ int base64_encode(const unsigned char *src, int srclen, char *dst) | |
*/ | ||
int base64_decode(const char *src, int srclen, unsigned char *dst) | ||
{ | ||
u_int32_t ac = 0; | ||
uint32_t ac = 0; | ||
int i, bits = 0; | ||
unsigned char *bp = dst; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters