diff options
Diffstat (limited to 'vendor/github.com/msteinert/pam')
-rw-r--r-- | vendor/github.com/msteinert/pam/.travis.yml | 6 | ||||
-rw-r--r-- | vendor/github.com/msteinert/pam/transaction.c | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/vendor/github.com/msteinert/pam/.travis.yml b/vendor/github.com/msteinert/pam/.travis.yml index f48afdc4c1..a31101d1ac 100644 --- a/vendor/github.com/msteinert/pam/.travis.yml +++ b/vendor/github.com/msteinert/pam/.travis.yml @@ -1,8 +1,8 @@ language: go go: - - 1.4 - - 1.5 + - 1.10.x + - 1.11.x - tip before_install: @@ -15,4 +15,4 @@ before_install: script: - sudo GOROOT=$GOROOT GOPATH=$GOPATH $(which go) test -v -covermode=count -coverprofile=coverage.out . - - goveralls -coverprofile=coverage.out -service travis-ci -repotoken $REPO_TOKEN + - if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then goveralls -coverprofile=coverage.out -service travis-ci -repotoken $REPO_TOKEN; fi diff --git a/vendor/github.com/msteinert/pam/transaction.c b/vendor/github.com/msteinert/pam/transaction.c index 5cf22a5db3..c8ca4d208e 100644 --- a/vendor/github.com/msteinert/pam/transaction.c +++ b/vendor/github.com/msteinert/pam/transaction.c @@ -2,9 +2,15 @@ #include <security/pam_appl.h> #include <string.h> +#ifdef __sun +#define PAM_CONST +#else +#define PAM_CONST const +#endif + int cb_pam_conv( int num_msg, - const struct pam_message **msg, + PAM_CONST struct pam_message **msg, struct pam_response **resp, void *appdata_ptr) { |