Salīdzināt revīzijas

...

2 Revīzijas

Autors SHA1 Ziņojums Datums
278ae31e2e fixup! Introduce exile_vows_from_str() 2022-01-30 10:45:05 +01:00
5ef54a08b4 struct syscall_vow_map: change 'str' to const char* 2022-01-30 10:42:46 +01:00

Parādīt failu

@ -247,7 +247,7 @@ struct syscall_vow_map
struct str_to_vow_map struct str_to_vow_map
{ {
char *str; const char *str;
uint64_t value; uint64_t value;
}; };
@ -698,7 +698,7 @@ uint64_t exile_vows_from_str(const char *str)
++str; ++str;
} }
int found = 0; int found = 0;
for(int i = 0; i < sizeof(str_to_vow_map)/sizeof(str_to_vow_map[0]); i++) for(size_t i = 0; i < sizeof(str_to_vow_map)/sizeof(str_to_vow_map[0]); i++)
{ {
if(strcmp(str_to_vow_map[i].str, current) == 0) if(strcmp(str_to_vow_map[i].str, current) == 0)
{ {