From owner-svn-src-head@freebsd.org Fri Feb 9 20:00:52 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 90D1AF1FB9A; Fri, 9 Feb 2018 20:00:52 +0000 (UTC) (envelope-from cem@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 404307605E; Fri, 9 Feb 2018 20:00:52 +0000 (UTC) (envelope-from cem@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3B49715EE; Fri, 9 Feb 2018 20:00:52 +0000 (UTC) (envelope-from cem@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w19K0qjf044073; Fri, 9 Feb 2018 20:00:52 GMT (envelope-from cem@FreeBSD.org) Received: (from cem@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w19K0qdb044072; Fri, 9 Feb 2018 20:00:52 GMT (envelope-from cem@FreeBSD.org) Message-Id: <201802092000.w19K0qdb044072@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cem set sender to cem@FreeBSD.org using -f From: Conrad Meyer Date: Fri, 9 Feb 2018 20:00:52 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r329079 - head/usr.bin/tftp X-SVN-Group: head X-SVN-Commit-Author: cem X-SVN-Commit-Paths: head/usr.bin/tftp X-SVN-Commit-Revision: 329079 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Feb 2018 20:00:52 -0000 Author: cem Date: Fri Feb 9 20:00:51 2018 New Revision: 329079 URL: https://svnweb.freebsd.org/changeset/base/329079 Log: tftp(1): Clean up leading and trailing whitespace Whitespace-only change. Sponsored by: Dell EMC Isilon Modified: head/usr.bin/tftp/main.c Modified: head/usr.bin/tftp/main.c ============================================================================== --- head/usr.bin/tftp/main.c Fri Feb 9 19:50:47 2018 (r329078) +++ head/usr.bin/tftp/main.c Fri Feb 9 20:00:51 2018 (r329079) @@ -475,7 +475,7 @@ put(int argc, char *argv[]) lcp[strlen(lcp) - 1] = '\0'; lcp++; } - setpeer0(lcp, NULL); + setpeer0(lcp, NULL); } if (!connected) { printf("No target machine specified.\n"); @@ -735,11 +735,11 @@ command(bool interactive, EditLine *el, History *hist, for (;;) { if (interactive) { - if ((bp = el_gets(el, &num)) == NULL || num == 0) - exit(0); - len = MIN(MAXLINE, num); - memcpy(line, bp, len); - line[len] = '\0'; + if ((bp = el_gets(el, &num)) == NULL || num == 0) + exit(0); + len = MIN(MAXLINE, num); + memcpy(line, bp, len); + line[len] = '\0'; history(hist, hep, H_ENTER, bp); } else { line[0] = 0;