summaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2009-06-02 15:49:30 +0200
committerDavid Sommerseth <davids@redhat.com>2009-06-02 15:55:10 +0200
commite99e3408206624facbb040d9006278848e1f0ead (patch)
treea51acd4b31cb79bbcaf07f3091005c4d898ee51a /src/util.c
parent3149fdcec94191102fd801c7967a5e3cb5b330a7 (diff)
downloadpython-dmidecode-e99e3408206624facbb040d9006278848e1f0ead.tar.gz
python-dmidecode-e99e3408206624facbb040d9006278848e1f0ead.tar.xz
python-dmidecode-e99e3408206624facbb040d9006278848e1f0ead.zip
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.
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c9
1 files changed, 0 insertions, 9 deletions
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;
-}
-
-