From e99e3408206624facbb040d9006278848e1f0ead Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Tue, 2 Jun 2009 15:49:30 +0200 Subject: Removed no longer needed function - is_int() This function did not work as expected and due to the rewrite of xmlpythonizer, this function is not longer needed. --- src/util.c | 9 --------- src/util.h | 1 - 2 files changed, 10 deletions(-) (limited to 'src') diff --git a/src/util.c b/src/util.c index 45bbd98..014b75d 100644 --- a/src/util.c +++ b/src/util.c @@ -190,12 +190,3 @@ int write_dump(size_t base, size_t len, const void *data, const char *dumpfile, return -1; } -long is_int(const char *s) -{ - long i = strtol(s, (char **)NULL, 10); - char _s[3]; - snprintf(_s, 3, "%ld", i); - return strcmp(s, _s)==0 ? i : -1; -} - - diff --git a/src/util.h b/src/util.h index b95bbeb..3effd0c 100644 --- a/src/util.h +++ b/src/util.h @@ -28,4 +28,3 @@ int checksum(const u8 * buf, size_t len); void *mem_chunk(size_t base, size_t len, const char *devmem); int write_dump(size_t base, size_t len, const void *data, const char *dumpfile, int add); -long is_int(const char *s); -- cgit