Hi!
> -             if (system("mkfs.btrfs 2>&1 | grep '\\-f ' >/dev/null") == 0) {
> +             if (0 == tst_system(
> +                                     "mkfs.btrfs 2>&1 | grep '\\-f ' 
> >/dev/null")
> +                     ) {

This is way too ugly. What about:

                if (!tst_system("mkfs.btrfs 2>&1 | grep '\\-f '>/dev/null")) {

-- 
Cyril Hrubis
chru...@suse.cz

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to