From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C36881396D0 for ; Mon, 18 Sep 2017 18:07:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 41B381FC0C2; Mon, 18 Sep 2017 18:07:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1FDC41FC0C2 for ; Mon, 18 Sep 2017 18:07:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6B9DD34071C for ; Mon, 18 Sep 2017 18:07:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EDBD39089 for ; Mon, 18 Sep 2017 18:07:38 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1505748977.0eb47b9af340dd07209a3920944ed085fe7bd359.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/rc-schedules.c src/rc/rc-schedules.h X-VCS-Directories: src/rc/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 0eb47b9af340dd07209a3920944ed085fe7bd359 X-VCS-Branch: master Date: Mon, 18 Sep 2017 18:07:38 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 8d784a34-57fa-4c69-863a-56252f6d4e73 X-Archives-Hash: 8d42d4f7004f2014416ba099a8541d7f commit: 0eb47b9af340dd07209a3920944ed085fe7bd359 Author: William Hubbs gmail com> AuthorDate: Mon Sep 18 15:36:17 2017 +0000 Commit: William Hubbs gentoo org> CommitDate: Mon Sep 18 15:36:17 2017 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=0eb47b9a initialize the stop schedule src/rc/rc-schedules.c | 6 +----- src/rc/rc-schedules.h | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/rc/rc-schedules.c b/src/rc/rc-schedules.c index 164581d6..9568e51d 100644 --- a/src/rc/rc-schedules.c +++ b/src/rc/rc-schedules.c @@ -56,11 +56,6 @@ typedef struct scheduleitem { static TAILQ_HEAD(, scheduleitem) schedule; -void initialize_schedulelist(void) -{ - TAILQ_INIT(&schedule); -} - void free_schedulelist(void) { SCHEDULEITEM *s1 = TAILQ_FIRST(&schedule); @@ -186,6 +181,7 @@ void parse_schedule(const char *applet, const char *string, int timeout) size_t len; SCHEDULEITEM *item; + TAILQ_INIT(&schedule); if (string) for (slash = string; *slash; slash++) if (*slash == '/') diff --git a/src/rc/rc-schedules.h b/src/rc/rc-schedules.h index 234e62df..e5dd64c2 100644 --- a/src/rc/rc-schedules.h +++ b/src/rc/rc-schedules.h @@ -13,7 +13,6 @@ #ifndef __RC_SCHEDULES_H #define __RC_SCHEDULES_H -void initialize_schedulelist(void); void free_schedulelist(void); int parse_signal(const char *applet, const char *sig); void parse_schedule(const char *applet, const char *string, int timeout);