summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-12-22 17:17:43 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2013-01-30 15:39:58 +0100
commitef961f49275ae4cee5d91959f5af5f13b9fdf965 (patch)
tree603a8b6ceb316318ece260600b0c9d27be937b37 /src
parentefa3589f78f52d33800c2be004b1f80b0bc3aac1 (diff)
downloadcalcurse-ef961f49275ae4cee5d91959f5af5f13b9fdf965.zip
Remove unused function mystrtol()
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src')
-rw-r--r--src/calcurse.h1
-rw-r--r--src/utils.c15
2 files changed, 0 insertions, 16 deletions
diff --git a/src/calcurse.h b/src/calcurse.h
index 16b126a..1f8c9db 100644
--- a/src/calcurse.h
+++ b/src/calcurse.h
@@ -971,7 +971,6 @@ void item_in_popup(const char *, const char *, const char *, const char *);
long get_today(void);
long now(void);
char *nowstr(void);
-long mystrtol(const char *);
void print_bool_option_incolor(WINDOW *, unsigned, int, int);
const char *get_tempdir(void);
char *new_tempfile(const char *, int);
diff --git a/src/utils.c b/src/utils.c
index ba31418..0826f89 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -561,21 +561,6 @@ char *nowstr(void)
return buf;
}
-long mystrtol(const char *str)
-{
- char *ep;
- long lval;
-
- errno = 0;
- lval = strtol(str, &ep, 10);
- if (str[0] == '\0' || *ep != '\0')
- EXIT(_("could not convert string"));
- if (errno == ERANGE && (lval == LONG_MAX || lval == LONG_MIN))
- EXIT(_("out of range"));
-
- return lval;
-}
-
/* Print the given option value with appropriate color. */
void
print_bool_option_incolor(WINDOW * win, unsigned option, int pos_y, int pos_x)