remove useless {}

This commit is contained in:
prx 2022-08-22 14:55:45 +02:00
parent 2b226c9a02
commit 7c1edb0feb
1 changed files with 1 additions and 2 deletions

3
main.c
View File

@ -25,10 +25,9 @@ int main(int argc, char *argv[]){
err(1, "pledge"); err(1, "pledge");
/* configuration */ /* configuration */
if (argc == 2) { if (argc == 2)
if (strlcpy(table, argv[1], TABLE_LEN) >= sizeof(table)) if (strlcpy(table, argv[1], TABLE_LEN) >= sizeof(table))
errx(1, "table name is too long"); errx(1, "table name is too long");
}
/* get socket structure */ /* get socket structure */
if(getpeername(STDIN_FILENO, (struct sockaddr *)&sock, &slen)) if(getpeername(STDIN_FILENO, (struct sockaddr *)&sock, &slen))