mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
login_fingerprint: back is a FILE *, so use fprintf(back, ...), not printf
Fixes build with llvm22 ok robert (maintainer)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user