mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-18 03:18:10 +08:00
Drop deprecated register keyword
This commit is contained in:
parent
2cf1b09767
commit
4d123a15f9
@ -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];
|
||||
|
@ -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
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user