diff options
author | Dave Barach <dave@barachs.net> | 2016-08-15 11:12:27 -0400 |
---|---|---|
committer | Dave Barach <dave@barachs.net> | 2016-08-15 11:12:40 -0400 |
commit | c379999665febd12ec55bfb3a7545224f2b39d3d (patch) | |
tree | 8bf0c11e52c2162e1239b6c3f4a5f74b62a07409 /vppinfra/vppinfra/test_longjmp.c | |
parent | b3d93dacfde8ab21bbce171fff2971b2ed7bce6a (diff) |
VPP-327 Coding standards cleanup for vppinfra
Fix additional a few additional deviations reported elsewhere by
checkstyle
Change-Id: I026a8ae1c5b1856bbe3c4a555e1b690e7501b045
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vppinfra/vppinfra/test_longjmp.c')
-rw-r--r-- | vppinfra/vppinfra/test_longjmp.c | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/vppinfra/vppinfra/test_longjmp.c b/vppinfra/vppinfra/test_longjmp.c index 299de258c2a..2415c4f061c 100644 --- a/vppinfra/vppinfra/test_longjmp.c +++ b/vppinfra/vppinfra/test_longjmp.c @@ -35,7 +35,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#include <vppinfra/clib.h> +#include <vppinfra/clib.h> #include <vppinfra/longjmp.h> #include <vppinfra/format.h> @@ -47,19 +47,22 @@ static int verbose; #define if_verbose(format,args...) \ if (verbose) { clib_warning(format, ## args); } -static never_inline void f2 (clib_longjmp_t * env) +static never_inline void +f2 (clib_longjmp_t * env) { i++; clib_longjmp (env, 1); } -static never_inline void f1 (clib_longjmp_t * env) +static never_inline void +f1 (clib_longjmp_t * env) { i++; f2 (env); } -int test_longjmp_main (unformat_input_t * input) +int +test_longjmp_main (unformat_input_t * input) { clib_longjmp_t env; @@ -76,7 +79,8 @@ int test_longjmp_main (unformat_input_t * input) return 0; } -static uword f3 (uword arg) +static uword +f3 (uword arg) { uword i, j, array[10]; @@ -90,9 +94,10 @@ static uword f3 (uword arg) return j; } -static void test_calljmp (unformat_input_t * input) +static void +test_calljmp (unformat_input_t * input) { - static u8 stack[32*1024] __attribute__((aligned(16))); + static u8 stack[32 * 1024] __attribute__ ((aligned (16))); uword v; v = clib_calljmp (f3, 0, stack + sizeof (stack)); @@ -101,7 +106,8 @@ static void test_calljmp (unformat_input_t * input) } #ifdef CLIB_UNIX -int main (int argc, char * argv []) +int +main (int argc, char *argv[]) { unformat_input_t i; int res; @@ -113,3 +119,11 @@ int main (int argc, char * argv []) return res; } #endif + +/* + * fd.io coding-style-patch-verification: ON + * + * Local Variables: + * eval: (c-set-style "gnu") + * End: + */ |