From: Daniel Wagner <[email protected]> --- doc/coding-style.txt | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/doc/coding-style.txt b/doc/coding-style.txt index 30690b7..b5ef30e 100644 --- a/doc/coding-style.txt +++ b/doc/coding-style.txt @@ -306,6 +306,15 @@ Example: 2) 0x1 << y // Wrong +M17: Always explicitly initialize static variables +================================================== +Any static declared value need to be assign the initial value. + +Exmaple: + +static GHastTable *driver_hash = NULL; +static int owner_watch = 0; + O1: Shorten the name ==================== Better to use abbreviation, rather than full name, to name a variable, -- 1.8.0.rc0 _______________________________________________ connman mailing list [email protected] http://lists.connman.net/listinfo/connman
