From owner-svn-src-head@freebsd.org Sat Jan 27 19:56:23 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 086EFEB64D6; Sat, 27 Jan 2018 19:56:23 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-it0-f47.google.com (mail-it0-f47.google.com [209.85.214.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 82E577733A; Sat, 27 Jan 2018 19:56:22 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-it0-f47.google.com with SMTP id u62so4090041ita.2; Sat, 27 Jan 2018 11:56:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=jxbfkdCdD2cCD/KPb5wZhDPvVw/Wr3kwMAhAMS/Sf+o=; b=j7++6BpGj62KI+9Ddp1BrIX75BAdnTV5PrSkMVzb5bI7cKKd+6ELe+23XT60u/IcvA eBu7NUCGO7eNRQMxIgeOW7ev7hEAz3kHDduMKWckNjOV4ljxslK85fxxC4rbKkbR9OGF AB4XlPCxgxoLBIvyD+fnzHxypeETCTxPh9VkgZ7It0JD0Rdxh8FuqGhGYzoh/DBf1gwr ODx7/tZuw0ZU/wY5gTdShsZiDpjCe8vLnEMatjahdIPsKkf1Lf1a/Jn0x4PIpsrTj4IZ 7H4yJ13maIclp26ZltdMecJvb1DCjdgkQn3kmgkyxo6owHwDXnQtFn1EJuGVjnhpXRX2 W57g== X-Gm-Message-State: AKwxytfBQN7UKc3DaUkb4Ptp1obsk/RMUgkEPMMHQB3bwIQ5HK1CwHjp IhrxRboKUX27NQOvfmvAH/3OXGZh X-Google-Smtp-Source: AH8x225C2CWMakGlMp1rntfdLgsF7S0bGZZvNcdwk6QDlh3gnMZ6TMgRFfAw96BDlkoCP6djCd6Teg== X-Received: by 10.36.93.20 with SMTP id w20mr21668896ita.101.1517082975821; Sat, 27 Jan 2018 11:56:15 -0800 (PST) Received: from mail-io0-f180.google.com (mail-io0-f180.google.com. [209.85.223.180]) by smtp.gmail.com with ESMTPSA id r203sm2076855itb.38.2018.01.27.11.56.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 27 Jan 2018 11:56:15 -0800 (PST) Received: by mail-io0-f180.google.com with SMTP id 25so3737553ioj.9; Sat, 27 Jan 2018 11:56:14 -0800 (PST) X-Received: by 10.107.174.196 with SMTP id n65mr21189279ioo.256.1517082974612; Sat, 27 Jan 2018 11:56:14 -0800 (PST) MIME-Version: 1.0 Reply-To: cem@freebsd.org Received: by 10.2.95.152 with HTTP; Sat, 27 Jan 2018 11:56:14 -0800 (PST) In-Reply-To: <201801271743.w0RHh9io022619@repo.freebsd.org> References: <201801271743.w0RHh9io022619@repo.freebsd.org> From: Conrad Meyer Date: Sat, 27 Jan 2018 11:56:14 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: svn commit: r328486 - head/usr.bin/fortune/fortune To: "Pedro F. Giffuni" Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" 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: Sat, 27 Jan 2018 19:56:23 -0000 We can use 'true' and 'false' now. (style(9) also suggests using the C99 names instead of TRUE/FALSE.) On Sat, Jan 27, 2018 at 9:43 AM, Pedro F. Giffuni wrote: > Author: pfg > Date: Sat Jan 27 17:43:09 2018 > New Revision: 328486 > URL: https://svnweb.freebsd.org/changeset/base/328486 > > Log: > fortune(6): Fix gcc80 -Wbool-operation warnings. > > Hinted by: Dragonfly (git 4d1086765752f0569497d06460d95117c74f33ac) > > Modified: > head/usr.bin/fortune/fortune/fortune.c > > Modified: head/usr.bin/fortune/fortune/fortune.c > ============================================================================== > --- head/usr.bin/fortune/fortune/fortune.c Sat Jan 27 17:24:59 2018 (r328485) > +++ head/usr.bin/fortune/fortune/fortune.c Sat Jan 27 17:43:09 2018 (r328486) > @@ -289,35 +289,35 @@ getargs(int argc, char *argv[]) > #endif /* DEBUG */ > switch(ch) { > case 'a': /* any fortune */ > - All_forts++; > + All_forts = TRUE; > break; > #ifdef DEBUG > case 'D': > Debug++; > break; > #endif /* DEBUG */ > - case 'e': > - Equal_probs++; /* scatter un-allocted prob equally */ > + case 'e': /* scatter un-allocted prob equally */ > + Equal_probs = TRUE; > break; > case 'f': /* find fortune files */ > - Find_files++; > + Find_files = TRUE; > break; > case 'l': /* long ones only */ > - Long_only++; > + Long_only = TRUE; > Short_only = FALSE; > break; > case 'o': /* offensive ones only */ > - Offend++; > + Offend = TRUE; > break; > case 's': /* short ones only */ > - Short_only++; > + Short_only = TRUE; > Long_only = FALSE; > break; > case 'w': /* give time to read */ > - Wait++; > + Wait = TRUE; > break; > case 'm': /* dump out the fortunes */ > - Match++; > + Match = TRUE; > pat = optarg; > break; > case 'i': /* case-insensitive match */ >