Re: [PATCH 11/15] write: remove PUTC macro

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

 



On 3 July 2016 at 22:23, Sami Kerola <kerolasa@xxxxxx> wrote:
> +               if (c == '\n' && fputc_careful('\r', stdout, '^') == EOF)
> +                       goto fail;
> +               if (fputc_careful(c, stdout, '^') == EOF)
> + fail:
> +                       err(EXIT_FAILURE, _("carefulputc failed"));

The two if statements can be merged, and goto becomes unnecessary. Fixed in.

https://github.com/kerolasa/lelux-utiliteetit/commit/a8031743eaea418a9512c426f5678ea53e943ceb

-- 
Sami Kerola
http://www.iki.fi/kerolasa/
--
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