summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWalter de Jong <walter@heiho.net>2013-03-22 22:45:06 +0100
committerWalter de Jong <walter@heiho.net>2013-03-22 22:48:46 +0100
commit09e617195b1015ade429a713f96129ec63352e06 (patch)
treecda15bbdc2f687c6bd4d852263772df0dbc493f0
parent33f6c8c8092251cd634100c2bcab1dcf8e202c18 (diff)
downloadpam_tacplus-09e617195b1015ade429a713f96129ec63352e06.tar.gz
pam_tacplus-09e617195b1015ade429a713f96129ec63352e06.zip
fix C++/C99 style comments
-rw-r--r--libtac/lib/acct_r.c2
-rw-r--r--libtac/lib/read_wait.c2
-rw-r--r--support.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/libtac/lib/acct_r.c b/libtac/lib/acct_r.c
index 766f645..16d7c1f 100644
--- a/libtac/lib/acct_r.c
+++ b/libtac/lib/acct_r.c
@@ -126,7 +126,7 @@ int tac_acct_read(int fd, struct areply *re) {
msg=(char *) xcalloc(1, tb->msg_len+1);
bcopy((u_char *) tb+TAC_ACCT_REPLY_FIXED_FIELDS_SIZE, msg, tb->msg_len);
msg[(int)tb->msg_len] = '\0';
- re->msg = msg; // Freed by caller
+ re->msg = msg; /* Freed by caller */
}
/* server logged our request successfully */
diff --git a/libtac/lib/read_wait.c b/libtac/lib/read_wait.c
index e294c8f..52efa43 100644
--- a/libtac/lib/read_wait.c
+++ b/libtac/lib/read_wait.c
@@ -111,7 +111,7 @@ int tac_read_wait(int fd, int timeout, int size, int *time_left) {
}
}
- if (rc < 0 && errno == EINTR) { // interrupt
+ if (rc < 0 && errno == EINTR) { /* interrupt */
continue;
}
diff --git a/support.c b/support.c
index 977537d..ad44829 100644
--- a/support.c
+++ b/support.c
@@ -216,7 +216,7 @@ int _pam_parse (int argc, const char **argv) {
} else if (!strncmp (*argv, "prompt=", 7)) { /* authentication */
tac_prompt = (char *) _xcalloc (strlen (*argv + 7) + 1);
strcpy (tac_prompt, *argv + 7);
- // Replace _ with space
+ /* Replace _ with space */
int chr;
for (chr = 0; chr < strlen(tac_prompt); chr++) {
if (tac_prompt[chr] == '_') {
@@ -232,7 +232,7 @@ int _pam_parse (int argc, const char **argv) {
char *port, server_buf[256];
memset(&hints, 0, sizeof hints);
- hints.ai_family = AF_UNSPEC; // use IPv4 or IPv6, whichever
+ hints.ai_family = AF_UNSPEC; /* use IPv4 or IPv6, whichever */
hints.ai_socktype = SOCK_STREAM;
if (strlen(*argv + 7) >= sizeof(server_buf)) {