This commit is contained in:
Daniel Stenberg 2003-01-09 11:31:49 +00:00
Родитель ba25cad6e2
Коммит ed22f75241
1 изменённых файлов: 46 добавлений и 44 удалений

Просмотреть файл

@ -98,7 +98,8 @@ static void base64Decode(unsigned char *dest, char *src, int *rawLength)
}
decodeQuantum(lastQuantum, src);
for(i = 0; i < 3 - equalsTerm; i++) dest[i] = lastQuantum[i];
for(i = 0; i < 3 - equalsTerm; i++)
dest[i] = lastQuantum[i];
}
@ -198,7 +199,8 @@ int Curl_base64_decode(const char *str, void *data)
#define TEST_NEED_SUCK
void *suck(int *);
int main(int argc, char **argv, char **envp) {
int main(int argc, char **argv, char **envp)
{
char *base64;
int base64Len;
unsigned char *data;
@ -224,7 +226,8 @@ int main(int argc, char **argv, char **envp) {
#define TEST_NEED_SUCK
void *suck(int *);
int main(int argc, char **argv, char **envp) {
int main(int argc, char **argv, char **envp)
{
char *base64;
int base64Len;
unsigned char *data;
@ -237,7 +240,6 @@ int main(int argc, char **argv, char **envp) {
fprintf(stderr, "%d\n", dataLen);
fwrite(data,1,dataLen,stdout);
free(base64); free(data);
return 0;
}
@ -245,7 +247,8 @@ int main(int argc, char **argv, char **envp) {
#ifdef TEST_NEED_SUCK
/* this function 'sucks' in as much as possible from stdin */
void *suck(int *lenptr) {
void *suck(int *lenptr)
{
int cursize = 8192;
unsigned char *buf = NULL;
int lastread;
@ -264,7 +267,6 @@ void *suck(int *lenptr) {
}
#endif
/*
* local variables:
* eval: (load-file "../curl-mode.el")