[dev] Parentheses

From: Bjartur Thorlacius <svartman95_AT_gmail.com>
Date: Thu, 04 Jul 2013 12:12:22 +0000

Galos, David:
> The types array stood out to me as a bit of a code smell.
> After pondering over it for a couple of minutes, I realized
> that you could just do this:
>
> type = argv[1][0] == 'b' ? S_IFBLK : S_IFCHR;
type = ((argv[1][0] == 'b') ? S_IFBLK : S_IFCHR)
Received on Thu Jul 04 2013 - 14:12:22 CEST

This archive was generated by hypermail 2.3.0 : Thu Jul 04 2013 - 14:24:04 CEST