login_fingerprint: back is a FILE *, so use fprintf(back, ...), not printf

Fixes build with llvm22

ok robert (maintainer)
This commit is contained in:
tb
2026-05-20 11:44:52 +00:00
parent 934bc2eca7
commit ac7e5e683a
2 changed files with 17 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
COMMENT= provide fingerprint authentication
DISTNAME= login_fingerprint-1.2
REVISION= 6
REVISION= 7
CATEGORIES= sysutils
SITES= http://blade2k.humppa.hu/
@@ -0,0 +1,16 @@
login_fingerprint.c:148:10: error: incompatible pointer types passing 'FILE *' (aka 'struct __sFILE *') to parameter of type 'const char *' [-Wincompatible-pointer-types]
148 | printf(back, BI_SILENT "\n");
| ^~~~
Index: login_fingerprint.c
--- login_fingerprint.c.orig
+++ login_fingerprint.c
@@ -145,7 +145,7 @@ main(int argc, char **argv)
}
if (strcmp(service, "challenge") == 0) {
- printf(back, BI_SILENT "\n");
+ fprintf(back, BI_SILENT "\n");
exit(0);
}