From 2df820fb593916c4f0375924f3626fccacb8207a Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Mon, 3 Dec 2007 18:20:58 -0500 Subject: [PATCH] pwmc and g++ compilation fix. --- pwmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pwmc.c b/pwmc.c index 90eea0f8..29b929a7 100644 --- a/pwmc.c +++ b/pwmc.c @@ -113,7 +113,7 @@ static gpg_error_t do_inquire(void *data, const char *keyword, gpg_error_t rc, static char buf[ASSUAN_LINELENGTH]; char *p; size_t len = 0; - struct inquire_s *inq = data; + struct inquire_s *inq = (struct inquire_s *)data; if (rc) { memset(buf, 0, sizeof(buf)); @@ -352,7 +352,7 @@ int main(int argc, char *argv[]) * data from the do_inquire() callback function. */ if (strncasecmp(p, "STORE ", 6) == 0) { - struct inquire_s *inq = malloc(sizeof(struct inquire_s)); + struct inquire_s *inq = (struct inquire_s *)malloc(sizeof(struct inquire_s)); if (!inq) { error = gpg_error_from_errno(ENOMEM); -- 2.11.4.GIT