diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-05-06 12:50:22 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-05-06 12:50:22 +0200 |
commit | 9d64da9ed2e173209c34954287781fe6045551a3 (patch) | |
tree | 890a9a81042765b673daa1329334a212ec72b815 /tests | |
parent | bd832ce81c1f9e6b1d69374c79014b79a85cd578 (diff) | |
download | libpam-x2go-9d64da9ed2e173209c34954287781fe6045551a3.tar.gz libpam-x2go-9d64da9ed2e173209c34954287781fe6045551a3.tar.bz2 libpam-x2go-9d64da9ed2e173209c34954287781fe6045551a3.zip |
White-space clean-up. Remove whitespaces at EOL.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mock_guest.c | 2 | ||||
-rw-r--r-- | tests/mock_pam.c | 2 | ||||
-rw-r--r-- | tests/test-x2go-wrapper.cc | 12 |
3 files changed, 8 insertions, 8 deletions
diff --git a/tests/mock_guest.c b/tests/mock_guest.c index 6073f0f..316e851 100644 --- a/tests/mock_guest.c +++ b/tests/mock_guest.c @@ -85,7 +85,7 @@ socket_sucker () } serv_addr.sun_family = AF_UNIX; - + int printsize = snprintf(serv_addr.sun_path, sizeof(serv_addr.sun_path) - 1, "%s/%s", home, ".x2go-socket"); if (printsize > sizeof(serv_addr.sun_path) - 1 || printsize < 0) { return -1; diff --git a/tests/mock_pam.c b/tests/mock_pam.c index 8b8e2f5..9111092 100644 --- a/tests/mock_pam.c +++ b/tests/mock_pam.c @@ -73,7 +73,7 @@ int PAM_NONNULL((1)) pam_get_item (const pam_handle_t *pamh, int type, const voi *value = pamh->conv; else if (pamh->item[type] != NULL) *value = pamh->item[type]; - else + else *value = NULL; /* will result in a prompt conversation */ return PAM_SUCCESS; diff --git a/tests/test-x2go-wrapper.cc b/tests/test-x2go-wrapper.cc index f514f0f..21b5e78 100644 --- a/tests/test-x2go-wrapper.cc +++ b/tests/test-x2go-wrapper.cc @@ -66,15 +66,15 @@ namespace { pam_handle_t *pamh = pam_handle_new (); - EXPECT_EQ (PAM_SUCCESS, + EXPECT_EQ (PAM_SUCCESS, pam_sm_authenticate (pamh, 0, 0, argv)); - EXPECT_EQ (PAM_SUCCESS, + EXPECT_EQ (PAM_SUCCESS, pam_sm_setcred (pamh, 0, 0, argv)); - - EXPECT_EQ (PAM_SUCCESS, + + EXPECT_EQ (PAM_SUCCESS, pam_sm_open_session (pamh, 0, 0, argv)); - EXPECT_EQ(0, socket_sucker()); - EXPECT_EQ (PAM_SUCCESS, + EXPECT_EQ(0, socket_sucker()); + EXPECT_EQ (PAM_SUCCESS, pam_sm_close_session (pamh, 0, 0, argv)); } |