summaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/utils.c b/src/utils.c
index 47d8d57..76cdba6 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)
@@ -860,14 +845,6 @@ int parse_duration(const char *string, unsigned *duration)
return 1;
}
-void str_toupper(char *s)
-{
- if (!s)
- return;
- for (; *s; s++)
- *s = toupper(*s);
-}
-
void file_close(FILE * f, const char *pos)
{
EXIT_IF((fclose(f)) != 0, _("Error when closing file at %s"), pos);