atoi: remove atoi usage
This commit is contained in:
@@ -57,7 +57,7 @@ int test(char *URL)
|
||||
test_setopt(curl, CURLOPT_VERBOSE, 1L);
|
||||
|
||||
/* set port number */
|
||||
test_setopt(curl, CURLOPT_PORT, atoi(libtest_arg2) );
|
||||
test_setopt(curl, CURLOPT_PORT, strtol(libtest_arg2, NULL, 10));
|
||||
|
||||
/* specify target */
|
||||
test_setopt(curl,CURLOPT_URL, URL);
|
||||
|
||||
Reference in New Issue
Block a user