diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2008-01-05 16:59:07 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2008-01-05 16:59:07 +0000 |
commit | 5084ffc7d9ea02e2705876cbf3731d61eea89140 (patch) | |
tree | 6b4ce6f48ebe21607c26b52acf463705b743fa22 /usr.sbin/cron | |
parent | bef48e0fcaf71ac8ba151010a3fade6b0aaf7ede (diff) |
remove unused function
from tobias@
ok mglocker@ tobias@
Diffstat (limited to 'usr.sbin/cron')
-rw-r--r-- | usr.sbin/cron/funcs.h | 3 | ||||
-rw-r--r-- | usr.sbin/cron/misc.c | 32 |
2 files changed, 3 insertions, 32 deletions
diff --git a/usr.sbin/cron/funcs.h b/usr.sbin/cron/funcs.h index 9a4b88fa6a7..2bc548412af 100644 --- a/usr.sbin/cron/funcs.h +++ b/usr.sbin/cron/funcs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: funcs.h,v 1.13 2005/01/30 20:44:50 millert Exp $ */ +/* $OpenBSD: funcs.h,v 1.14 2008/01/05 16:59:06 chl Exp $ */ /* * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") @@ -53,7 +53,6 @@ int job_runqueue(void), glue_strings(char *, size_t, const char *, const char *, char), strcmp_until(const char *, const char *, char), allowed(const char *, const char *, const char *), - strdtb(char *), open_socket(void), safe_p(const char *, const char *), scan_atjobs(at_db *, struct timeval *); diff --git a/usr.sbin/cron/misc.c b/usr.sbin/cron/misc.c index 0b6e271b74d..d97345a06a5 100644 --- a/usr.sbin/cron/misc.c +++ b/usr.sbin/cron/misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.38 2007/06/02 01:29:11 pvalchev Exp $ */ +/* $OpenBSD: misc.c,v 1.39 2008/01/05 16:59:06 chl Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * All rights reserved @@ -22,7 +22,7 @@ */ #if !defined(lint) && !defined(LINT) -static char const rcsid[] = "$OpenBSD: misc.c,v 1.38 2007/06/02 01:29:11 pvalchev Exp $"; +static char const rcsid[] = "$OpenBSD: misc.c,v 1.39 2008/01/05 16:59:06 chl Exp $"; #endif /* vix 26jan87 [RCS has the rest of the log] @@ -64,34 +64,6 @@ strcmp_until(const char *left, const char *right, char until) { return (*left - *right); } -/* strdtb(s) - delete trailing blanks in string 's' and return new length - */ -int -strdtb(char *s) { - char *x = s; - - /* scan forward to the null - */ - while (*x) - x++; - - /* scan backward to either the first character before the string, - * or the last non-blank in the string, whichever comes first. - */ - do {x--;} - while (x >= s && isspace((unsigned char)*x)); - - /* one character beyond where we stopped above is where the null - * goes. - */ - *++x = '\0'; - - /* the difference between the position of the null character and - * the position of the first character of the string is the length. - */ - return (x - s); -} - int set_debug_flags(const char *flags) { /* debug flags are of the form flag[,flag ...] |