Fix some errors and warnings from OpenBSD
This commit is contained in:
@@ -170,7 +170,6 @@ void *activity_monitor_thread_code(void *arg) {
|
||||
|
||||
uint64_t sec;
|
||||
uint64_t nsec;
|
||||
int rc;
|
||||
struct timespec time_for_wait;
|
||||
|
||||
state = am_inactive;
|
||||
|
||||
@@ -450,7 +450,7 @@ char *base64_enc(uint8_t *input, int length) {
|
||||
b64 = BIO_push(b64, bmem);
|
||||
BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL);
|
||||
BIO_write(b64, input, length);
|
||||
BIO_flush(b64);
|
||||
(void) BIO_flush(b64);
|
||||
BIO_get_mem_ptr(b64, &bptr);
|
||||
|
||||
char *buf = (char *)malloc(bptr->length);
|
||||
@@ -482,7 +482,7 @@ uint8_t *base64_dec(char *input, int *outlen) {
|
||||
BIO_write(bmem, input, inlen);
|
||||
while (inlen++ & 3)
|
||||
BIO_write(bmem, "=", 1);
|
||||
BIO_flush(bmem);
|
||||
(void) BIO_flush(bmem);
|
||||
|
||||
int bufsize = strlen(input) * 3 / 4 + 1;
|
||||
uint8_t *buf = malloc(bufsize);
|
||||
|
||||
+1
-1
@@ -31,7 +31,6 @@
|
||||
#include <libconfig.h>
|
||||
#include <libgen.h>
|
||||
#include <memory.h>
|
||||
#include <net/if.h>
|
||||
#include <popt.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@@ -39,6 +38,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
#include <net/if.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "config.h"
|
||||
|
||||
Reference in New Issue
Block a user