From owner-svn-src-all@FreeBSD.ORG Sun Aug 8 02:45:49 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 620C71065672; Sun, 8 Aug 2010 02:45:49 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 368158FC08; Sun, 8 Aug 2010 02:45:49 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o782jnP3032939; Sun, 8 Aug 2010 02:45:49 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o782jnFe032936; Sun, 8 Aug 2010 02:45:49 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201008080245.o782jnFe032936@svn.freebsd.org> From: Ed Schouten Date: Sun, 8 Aug 2010 02:45:49 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r211056 - head/libexec/talkd X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Aug 2010 02:45:49 -0000 Author: ed Date: Sun Aug 8 02:45:48 2010 New Revision: 211056 URL: http://svn.freebsd.org/changeset/base/211056 Log: Remove unneeded use of struct timezone. We can safely call gettimeofday() without passing a struct timezone. We're not using it at all. Modified: head/libexec/talkd/announce.c head/libexec/talkd/table.c Modified: head/libexec/talkd/announce.c ============================================================================== --- head/libexec/talkd/announce.c Sun Aug 8 02:45:14 2010 (r211055) +++ head/libexec/talkd/announce.c Sun Aug 8 02:45:48 2010 (r211056) @@ -99,7 +99,6 @@ print_mesg(const char *tty, CTL_MSG *req { struct timeval now; time_t clock_sec; - struct timezone zone; struct tm *localclock; struct iovec iovec; char line_buf[N_LINES][N_CHARS]; @@ -110,7 +109,7 @@ print_mesg(const char *tty, CTL_MSG *req i = 0; max_size = 0; - gettimeofday(&now, &zone); + gettimeofday(&now, NULL); clock_sec = now.tv_sec; localclock = localtime(&clock_sec); (void)snprintf(line_buf[i], N_CHARS, " "); Modified: head/libexec/talkd/table.c ============================================================================== --- head/libexec/talkd/table.c Sun Aug 8 02:45:14 2010 (r211055) +++ head/libexec/talkd/table.c Sun Aug 8 02:45:48 2010 (r211056) @@ -66,7 +66,6 @@ static const char rcsid[] = extern int debug; struct timeval tp; -struct timezone txp; typedef struct table_entry TABLE_ENTRY; @@ -91,7 +90,7 @@ find_match(CTL_MSG *request) TABLE_ENTRY *ptr; time_t current_time; - gettimeofday(&tp, &txp); + gettimeofday(&tp, NULL); current_time = tp.tv_sec; if (debug) print_request("find_match", request); @@ -124,7 +123,7 @@ find_request(CTL_MSG *request) TABLE_ENTRY *ptr; time_t current_time; - gettimeofday(&tp, &txp); + gettimeofday(&tp, NULL); current_time = tp.tv_sec; /* * See if this is a repeated message, and check for @@ -161,7 +160,7 @@ insert_table(CTL_MSG *request, CTL_RESPO TABLE_ENTRY *ptr; time_t current_time; - gettimeofday(&tp, &txp); + gettimeofday(&tp, NULL); current_time = tp.tv_sec; request->id_num = new_id(); response->id_num = htonl(request->id_num);