mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
update guidelines to follow their own rules for whitespace (bug #4486)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5880 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -90,7 +90,7 @@ for (x=0;x<5;x++) {
|
||||
Don't build code like this:
|
||||
|
||||
if (foo) {
|
||||
.... 50 lines of code ...
|
||||
/* .... 50 lines of code ... */
|
||||
} else {
|
||||
result = 0;
|
||||
return;
|
||||
@@ -125,6 +125,7 @@ options that they are in fact intended to be global.
|
||||
|
||||
When making applications, always ast_strdupa(data) to a local pointer if
|
||||
you intend to parse it.
|
||||
|
||||
if (data)
|
||||
mydata = ast_strdupa(data);
|
||||
|
||||
|
Reference in New Issue
Block a user