Hi,

I'm developing an USB Wifi driver for Linux, and I've found that a
file was not passing scripts/checkpatch after applying scripts/Lindent
which is a wrapper around indent. Lindent uses '-npro -kr -i8 -ts8
-sob -l80 -ss -ncs -cp1 -il0' as flags for indent.

before:
static struct ieee80211_rate wbsoft_rates[] = {
        { .bitrate = 10, .flags = IEEE80211_RATE_SHORT_PREAMBLE },
};

after:
static struct ieee80211_rate wbsoft_rates[] = {
        {.bitrate = 10,.flags = IEEE80211_RATE_SHORT_PREAMBLE},
};

(note the missing whitespace after the first comma.)

The file is linux-2.6.30.4/drivers/staging/winbond/wbusb.c and I have
the latest stable version of indent on a Gentoo system.

am...@t60 ~ $ indent --version
GNU indent 2.2.9
am...@t60 ~ $ cat /etc/gentoo-release
Gentoo Base System release 1.12.11.1



Hope it helps...

Thanks!

-- 
Andres


_______________________________________________
bug-indent mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-indent

Reply via email to