[PATCH 3/5] socket-test: Fix indentation to follow project code style policy
Bryce Harrington
bryce at osg.samsung.com
Mon Nov 23 19:54:06 PST 2015
On Thu, Nov 19, 2015 at 11:23:42AM -0800, Bill Spitzak wrote:
> On Thu, Nov 19, 2015 at 1:36 AM, Bryce Harrington <bryce at osg.samsung.com>
> wrote:
>
> > From: Bryce Harrington <bryce at bryceharrington.org>
> >
> > Signed-off-by: Bryce Harrington <bryce at osg.samsung.com>
> > ---
> > tests/socket-test.c | 174
> > ++++++++++++++++++++++++++--------------------------
> > 1 file changed, 87 insertions(+), 87 deletions(-)
> >
> > diff --git a/tests/socket-test.c b/tests/socket-test.c
> > index c53f972..f6db6cf 100644
> > --- a/tests/socket-test.c
> > +++ b/tests/socket-test.c
> > @@ -46,129 +46,129 @@ static const struct sockaddr_un example_sockaddr_un;
> > static const char *
> > require_xdg_runtime_dir(void)
> > {
> > - char *val = getenv("XDG_RUNTIME_DIR");
> > - if (!val)
> > - assert(0 && "set $XDG_RUNTIME_DIR to run this test");
> > + char *val = getenv("XDG_RUNTIME_DIR");
> > + if (!val)
> > + assert(0 && "set $XDG_RUNTIME_DIR to run
> > this test");
> >
>
> How about:
>
> assert(val && "set $XDG_RUNTIME_DIR to run this test")
>
> ?
Good idea
More information about the wayland-devel
mailing list