Re: wakeup tool

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

 



* Karel Zak <kzak@xxxxxxxxxx> [2007-07-13 14:13]:
> > +static int read_clock_mode(void)
> > +{
> > +	FILE *fp;
> > +	char linebuf[MAX_LINE];
> > +
> > +	fp = fopen(ADJTIME_PATH, "r");
> > +	if (!fp)
> > +		return 0;
> > +
>   ....
> 
>   fclose(fp);

That would be fclose(NULL). Where's the benefit?



Thanks,
   Bernhard
-
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" 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