]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - login/tst-utmp.c
iconv, localedef: avoid floating point rounding differences [BZ #24372]
[thirdparty/glibc.git] / login / tst-utmp.c
index 4e355fc6b657ba9ed96a29eb2f6f3800ff0dc823..ce48e8326ecc3a9c13a7e2b73ddc7c9aa8254424 100644 (file)
@@ -132,8 +132,8 @@ do_check (void)
   n = 0;
   while ((ut = getutent ()))
     {
-      if (n < num_entries &&
-         memcmp (ut, &entry[n], sizeof (struct utmp)))
+      if (n < num_entries
+         && memcmp (ut, &entry[n], sizeof (struct utmp)))
        {
          error (0, 0, "UTMP entry does not match");
          return 1;
@@ -160,8 +160,8 @@ simulate_login (const char *line, const char *user)
 
   for (n = 0; n < num_entries; n++)
     {
-      if (strcmp (line, entry[n].ut_line) == 0 ||
-         entry[n].ut_type == DEAD_PROCESS)
+      if (strcmp (line, entry[n].ut_line) == 0
+         || entry[n].ut_type == DEAD_PROCESS)
        {
          if (entry[n].ut_pid == DEAD_PROCESS)
            entry[n].ut_pid = (entry_pid += 27);