Welcome to little lamb

Code » limb » master » tree

[master] / src / liblimb / autoopt.h / autoopt_quiet.c

/* This file is part of limb                           https://lila.oss/limb
 * Copyright (C) 2023 Olivier Brunel                          jjk@jjacky.com */
/* SPDX-License-Identifier: GPL-2.0-only */
#include <limb/gccattributes.h>
#include <limb/autoopt.h>
#include <limb/obuffer.h>

int
autoopt_quiet(const struct option *option gccattr_unused, const char *arg gccattr_unused)
{
    if (obuffer_1->lvl > OLVL_SILENT)
        obuffer_1->lvl -= 50;
    return 1;
}