Remove register keyword as it's deprecated since C++17

This commit is contained in:
smallmodel 2024-09-04 20:10:21 +02:00
parent 4123bef60d
commit 7f08a7bca8
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -878,7 +878,7 @@ void MSG_ReadData( msg_t *msg, void *data, int len ) {
// a string hasher which gives the same hash value even if the
// string is later modified via the legacy MSG read/write code
int MSG_HashKey(const char *string, int maxlen) {
int register hash, i;
int hash, i;
hash = 0;
for (i = 0; i < maxlen && string[i] != '\0'; i++) {