lib/, src/: Align variable definitions

This is just a cosmetic patch in preparation for others.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
Alejandro Colomar
2023-08-26 13:16:42 +02:00
committed by Serge Hallyn
parent ce0fc161b4
commit 76bbce3564
4 changed files with 33 additions and 33 deletions

View File

@@ -893,9 +893,9 @@ static int write_all (const struct commonio_db *db)
int commonio_close (struct commonio_db *db)
{
char buf[1024];
int errors = 0, r;
struct stat sb;
int errors = 0, r;
char buf[1024];
struct stat sb;
if (!db->isopen) {
errno = EINVAL;

View File

@@ -75,10 +75,10 @@ int get_pidfd_from_fd(const char *pidfdstr)
int open_pidfd(const char *pidstr)
{
int proc_dir_fd;
int written;
char proc_dir_name[32];
pid_t target;
int proc_dir_fd;
int written;
char proc_dir_name[32];
pid_t target;
if (get_pid(pidstr, &target) == 0)
return -ENOENT;

View File

@@ -44,12 +44,12 @@ static void nss_exit(void) {
// nsswitch_path is an argument only to support testing.
void nss_init(const char *nsswitch_path) {
FILE *nssfp = NULL;
char *line = NULL, *p, *token, *saveptr;
size_t len = 0;
FILE *shadow_logfd = log_get_logfd();
char libname[65];
void *h;
char *line = NULL, *p, *token, *saveptr;
char libname[65];
FILE *nssfp = NULL;
FILE *shadow_logfd = log_get_logfd();
void *h;
size_t len = 0;
if (atomic_flag_test_and_set(&nss_init_started)) {
// Another thread has started nss_init, wait for it to complete