From 3139f811b9efd43db336e200a3aa52595398bb4c Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 16 Jan 2022 10:16:16 -0800 Subject: [PATCH] dot.demo/simple.c: [nfc] align with C99 style and clang-format --- dot.demo/simple.c | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/dot.demo/simple.c b/dot.demo/simple.c index a9424a4af..48f6cf795 100644 --- a/dot.demo/simple.c +++ b/dot.demo/simple.c @@ -1,5 +1,5 @@ /************************************************************************* - * Copyright (c) 2011 AT&T Intellectual Property + * Copyright (c) 2011 AT&T Intellectual Property * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -10,28 +10,26 @@ #include #include +#include -int main(int argc, char **argv) -{ - GVC_t *gvc; - graph_t *g; - FILE *fp; +int main(int argc, char **argv) { - gvc = gvContext(); + GVC_t *gvc = gvContext(); - if (argc > 1) - fp = fopen(argv[1], "r"); - else - fp = stdin; - g = agread(fp, NULL); + FILE *fp; + if (argc > 1) + fp = fopen(argv[1], "r"); + else + fp = stdin; + graph_t *g = agread(fp, NULL); - gvLayout(gvc, g, "dot"); + gvLayout(gvc, g, "dot"); - gvRender(gvc, g, "plain", stdout); + gvRender(gvc, g, "plain", stdout); - gvFreeLayout(gvc, g); + gvFreeLayout(gvc, g); - agclose(g); + agclose(g); - return (gvFreeContext(gvc)); + return gvFreeContext(gvc); } -- 2.40.0