-
Notifications
You must be signed in to change notification settings - Fork 742
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
security/opensc: try to fix build on -CURRENT.
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- src/libopensc/card-openpgp.c.orig 2023-03-13 11:54:48 UTC | ||
+++ src/libopensc/card-openpgp.c | ||
@@ -129,7 +129,7 @@ static pgp_ec_curves_t ec_curves_gnuk[] = { | ||
|
||
static int pgp_get_card_features(sc_card_t *card); | ||
static int pgp_finish(sc_card_t *card); | ||
-static void pgp_iterate_blobs(pgp_blob_t *, void (*func)()); | ||
+static void pgp_iterate_blobs(pgp_blob_t *, void (*func)(pgp_blob_t *)); | ||
|
||
static int pgp_get_blob(sc_card_t *card, pgp_blob_t *blob, | ||
unsigned int id, pgp_blob_t **ret); | ||
@@ -1150,7 +1150,7 @@ pgp_free_blob(pgp_blob_t *blob) | ||
* Internal: iterate through the blob tree, calling a function for each blob. | ||
*/ | ||
static void | ||
-pgp_iterate_blobs(pgp_blob_t *blob, void (*func)()) | ||
+pgp_iterate_blobs(pgp_blob_t *blob, void (*func)(pgp_blob_t *)) | ||
{ | ||
if (blob) { | ||
pgp_blob_t *child = blob->files; |