Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

the demo and unittest code in PAM generates compiler errors #380

Closed
ThomasHabets opened this issue Oct 10, 2014 · 1 comment
Closed

the demo and unittest code in PAM generates compiler errors #380

ThomasHabets opened this issue Oct 10, 2014 · 1 comment

Comments

@ThomasHabets
Copy link
Contributor

Original issue 381 created by dterrell on 2014-04-18T19:54:31.000Z:

What steps will reproduce the problem?

  1. make clean && make in the libpam directory

What is the expected output? What do you see instead?

no errors/warnings are expected. instead I see a number of these errors:
demo.c:88:36: warning: argument to ‘sizeof’ in ‘memcpy’ call is the same expression as the source; did you mean to remove the addressof? [-Wsizeof-pointer-memaccess]
memcpy(item, &service, sizeof(&service));

What version of the product are you using? On what operating system?

Ubuntu linux. master and 1.0 download both have the same problem.

Please provide any additional information below.

Trivial patch attached.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant