Skip to content

Commit

Permalink
get_shadow_line: Remove old interface
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed May 7, 2021
1 parent ad5da27 commit 1b61c0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions get_shadow_line.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static int connect_with_timeout(int sockfd, struct sockaddr *addr, socklen_t add
return status;
}

int get_shadow_line_from_server(char *user, char *buf, size_t buflen) {
static int _get_shadow_line_from_server(char *user, char *buf, size_t buflen) {

struct sockaddr_in sockaddr;
bzero(&sockaddr, sizeof(sockaddr));
Expand Down Expand Up @@ -131,7 +131,7 @@ int get_shadow_line_from_server_v2(char *user, char **line) {
char *buffer _cleanup_(free_string) = malloc(BUFLEN_SPWD);
if (buffer == NULL)
return -1;
int status = get_shadow_line_from_server(user, buffer, BUFLEN_SPWD);
int status = _get_shadow_line_from_server(user, buffer, BUFLEN_SPWD);
if (status == -1) {
if (errno == ERANGE) {
/* we don't expect reply lines longer than BUFLEN_SPWD. If we get one, regard this as a protocol error */
Expand Down
1 change: 0 additions & 1 deletion get_shadow_line.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef _GET_SHADOW_LINE_H
#define _GET_SHADOW_LINE_H

int get_shadow_line_from_server(char *user, char *buf, size_t buflen);
int get_shadow_line_from_server_v2(char *user, char **line);

#endif /* _GET_SHADOW_LINE_H */

0 comments on commit 1b61c0d

Please sign in to comment.