From e70f1d947eece751e1f3a53ab8176d9ee6e4e6ac Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Sat, 6 Nov 2010 10:53:32 -0500 Subject: [PATCH] Remove left over record code. Squelch compile warnings --- utils/md5.c | 4 ++++ utils/websocket.h | 1 - utils/wsproxy.c | 7 ------- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/utils/md5.c b/utils/md5.c index b89c29db..dcdc3685 100644 --- a/utils/md5.c +++ b/utils/md5.c @@ -56,6 +56,10 @@ # define md5_read_ctx __md5_read_ctx # define md5_stream __md5_stream # define md5_buffer __md5_buffer +#else +/* Squelch compiler complaints */ +void md5_process_bytes (const void *buffer, size_t len, struct md5_ctx *ctx); +void md5_process_block (const void *buffer, size_t len, struct md5_ctx *ctx); #endif #ifdef WORDS_BIGENDIAN diff --git a/utils/websocket.h b/utils/websocket.h index 5102a0f6..28616c6a 100644 --- a/utils/websocket.h +++ b/utils/websocket.h @@ -14,7 +14,6 @@ typedef struct { int handler_id; int ssl_only; int daemon; - char *record; char *cert; } settings_t; diff --git a/utils/wsproxy.c b/utils/wsproxy.c index 7e1b5685..f0f452c8 100644 --- a/utils/wsproxy.c +++ b/utils/wsproxy.c @@ -273,13 +273,6 @@ int main(int argc, char *argv[]) case 'f': foreground = 1; break; - case 'r': - if ((fd = open(optarg, O_CREAT, - S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)) < -1) { - usage("Could not access %s\n", optarg); - } - close(fd); - break; case 'c': settings.cert = realpath(optarg, NULL); if (! settings.cert) {