commit 8bdb2282e6b1c75bd6c47d1f4779133c7c500962 from: Markus Uhlin date: Sun Apr 6 18:03:31 2025 UTC ReadV1PlayerFmt: suppress clang tidy warnings commit - 93d812f08b1a4275c6979044d1d13c6049330616 commit + 8bdb2282e6b1c75bd6c47d1f4779133c7c500962 blob - 7bae2780ae68b09525521ec77fdb8fab0002ec50 blob + 7b5669ff783ce3b614810ba26ccb447a745bf0b3 --- FICS/playerdb.c +++ FICS/playerdb.c @@ -441,7 +441,7 @@ ReadV1PlayerFmt(int p, player *pp, FILE *fp, char *fil /* * Name */ - if (fgets(tmp2, sizeof tmp2, fp) != NULL && + if (fgets(tmp2, sizeof tmp2, fp) != NULL && // NOLINT strcmp(tmp2, "NONE\n") != 0) { tmp2[strcspn(tmp2, "\n")] = '\0'; pp->name = xstrdup(tmp2); @@ -452,7 +452,7 @@ ReadV1PlayerFmt(int p, player *pp, FILE *fp, char *fil /* * Full name */ - if (fgets(tmp2, sizeof tmp2, fp) != NULL && + if (fgets(tmp2, sizeof tmp2, fp) != NULL && // NOLINT strcmp(tmp2, "NONE\n") != 0) { tmp2[strcspn(tmp2, "\n")] = '\0'; pp->fullName = xstrdup(tmp2); @@ -463,7 +463,7 @@ ReadV1PlayerFmt(int p, player *pp, FILE *fp, char *fil /* * Password */ - if (fgets(tmp2, sizeof tmp2, fp) != NULL && + if (fgets(tmp2, sizeof tmp2, fp) != NULL && // NOLINT strcmp(tmp2, "NONE\n") != 0) { tmp2[strcspn(tmp2, "\n")] = '\0'; pp->passwd = xstrdup(tmp2); @@ -474,7 +474,7 @@ ReadV1PlayerFmt(int p, player *pp, FILE *fp, char *fil /* * Email */ - if (fgets(tmp2, sizeof tmp2, fp) != NULL && + if (fgets(tmp2, sizeof tmp2, fp) != NULL && // NOLINT strcmp(tmp2, "NONE\n") != 0) { tmp2[strcspn(tmp2, "\n")] = '\0'; pp->emailAddress = xstrdup(tmp2);