mirror of
https://github.com/troglobit/libite.git
synced 2026-11-07 16:01:01 +00:00
Followup to atonum(), missing include file and const.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
41c9caff17
commit
1147e547dc
1 file changed
+2
-1
@@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
#include <error.h>
|
#include <error.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdint.h> /* uint8_t, uint16_t, uint32_t, INT32_MAX, etc. */
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@@ -105,7 +106,7 @@ static inline int fisslashdir(char *dir)
|
|||||||
static inline int atonum(const char *str)
|
static inline int atonum(const char *str)
|
||||||
{
|
{
|
||||||
int val = -1;
|
int val = -1;
|
||||||
char *errstr;
|
const char *errstr;
|
||||||
|
|
||||||
if (str) {
|
if (str) {
|
||||||
val = strtonum(str, 0, INT32_MAX, &errstr);
|
val = strtonum(str, 0, INT32_MAX, &errstr);
|
||||||
|
|||||||
Reference in new issue
Block a user