Re: [PATCH 15/17] last: use configuration struct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 29, 2013 at 07:06:33PM +0100, Sami Kerola wrote:
> +struct last_control {
> +	char lastb;		/* Is this command 'lastb' */
> +	char extended;		/* Lots of info */
> +	char showhost;		/* Show hostname */
> +	char altlist;		/* Hostname at the end */
> +	char usedns;		/* Use DNS to lookup the hostname */
> +	char useip;		/* Print IP address in number format */
> +	char fulltime;		/* Print full dates and times */

 BTW, it's C so use bit array next time :-)

     unsigned int lastb : 1,
                  ....

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux