Drop deprecated register keyword

This commit is contained in:
cpq 2020-12-23 21:20:48 +00:00
parent 2cf1b09767
commit 4d123a15f9
3 changed files with 5 additions and 4 deletions

View File

@ -1469,9 +1469,9 @@ void mg_mgr_poll(struct mg_mgr *mgr, int ms) {
#ifdef MG_ENABLE_LINES
#line 1 "src/md5.c"
#endif
#include <string.h>
#if MG_ENABLE_MD5
#if !defined(BYTE_ORDER) && defined(__BYTE_ORDER)
#define BYTE_ORDER __BYTE_ORDER
@ -1521,7 +1521,7 @@ void mg_md5_init(mg_md5_ctx *ctx) {
}
static void mg_md5_transform(uint32_t buf[4], uint32_t const in[16]) {
register uint32_t a, b, c, d;
uint32_t a, b, c, d;
a = buf[0];
b = buf[1];

View File

@ -255,6 +255,7 @@ enum { false = 0, true = 1 };
#include <winsock2.h>
// Protect from calls like std::snprintf in app code
// See https://github.com/cesanta/mongoose/issues/1047
#ifndef __cplusplus
#define snprintf _snprintf

View File

@ -1,5 +1,5 @@
#include "md5.h"
#include <string.h>
#include "md5.h"
#if MG_ENABLE_MD5
#if !defined(BYTE_ORDER) && defined(__BYTE_ORDER)
@ -50,7 +50,7 @@ void mg_md5_init(mg_md5_ctx *ctx) {
}
static void mg_md5_transform(uint32_t buf[4], uint32_t const in[16]) {
register uint32_t a, b, c, d;
uint32_t a, b, c, d;
a = buf[0];
b = buf[1];