1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

getvar.c atoll() -> strtoll() (portability fix)

mysys/getvar.c:
  atoll() -> strtoll() (portability fix)
This commit is contained in:
unknown
2001-05-18 12:52:31 -04:00
parent 62198cbc79
commit 188349dd96

View File

@@ -87,7 +87,7 @@ my_bool set_changeable_var(my_string str,CHANGEABLE_VAR *vars)
DBUG_RETURN(1);
}
num=atoll(end); endchar=strend(end)[-1];
num=strtoll(end, (char **)NULL, 10); endchar=strend(end)[-1];
if (endchar == 'k' || endchar == 'K')
num*=1024;
else if (endchar == 'm' || endchar == 'M')