Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mereacre committed Jan 16, 2024
1 parent 7a8d8d5 commit 521c60d
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/brski/brski.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ void log_lock_fun(bool lock);
#include "version.h"

const std::string OPT_STRING = ":c:o:p:a:dvh";
const std::string USAGE_STRING =
"\t%s [-c filename] [-o filename] [-p port] [-a address] [-d] [-h] [-v] <command>\n";
const std::string USAGE_STRING = "\t%s [-c filename] [-o filename] [-p port] "
"[-a address] [-d] [-h] [-v] <command>\n";

enum class CommandId {
COMMAND_EXPORT_PVR = 1,
Expand Down Expand Up @@ -125,9 +125,8 @@ static CommandId get_command_id(const std::string &command_label) {

static void process_options(int argc, char *const argv[], int &verbose,
std::string &config_filename,
std::string &out_filename,
unsigned int *port, std::string &address,
CommandId &command_id) {
std::string &out_filename, unsigned int *port,
std::string &address, CommandId &command_id) {
int opt;

while ((opt = getopt(argc, argv, OPT_STRING.c_str())) != -1) {
Expand Down Expand Up @@ -219,8 +218,8 @@ int main(int argc, char *argv[]) {
CommandId command_id;
char outf[255];

process_options(argc, argv, verbose, config_filename, out_filename,
&port, address, command_id);
process_options(argc, argv, verbose, config_filename, out_filename, &port,
address, command_id);

log_set_lock(log_lock_fun);

Expand All @@ -237,9 +236,8 @@ int main(int argc, char *argv[]) {
}

if (command_id == CommandId::COMMAND_PLEDGE_REQUEST ||
command_id == CommandId::COMMAND_SIGN_CERT ||
command_id == CommandId::COMMAND_START_REGISTRAR)
{
command_id == CommandId::COMMAND_SIGN_CERT ||
command_id == CommandId::COMMAND_START_REGISTRAR) {
if (port)
config.rconf.port = port;

Expand Down

0 comments on commit 521c60d

Please sign in to comment.