mirror of
https://github.com/libssh2/libssh2.git
synced 2025-07-29 13:01:14 +03:00
tidy-up: avoid exclamations, prefer single quotes, in outputs
Closes #1079
This commit is contained in:
@ -72,7 +72,7 @@ int main(int argc, char *argv[])
|
||||
*/
|
||||
sock = socket(AF_INET, SOCK_STREAM, 0);
|
||||
if(sock == LIBSSH2_INVALID_SOCKET) {
|
||||
fprintf(stderr, "failed to create socket!\n");
|
||||
fprintf(stderr, "failed to create socket.\n");
|
||||
rc = 1;
|
||||
goto shutdown;
|
||||
}
|
||||
@ -81,14 +81,14 @@ int main(int argc, char *argv[])
|
||||
sin.sin_port = htons(22);
|
||||
sin.sin_addr.s_addr = hostaddr;
|
||||
if(connect(sock, (struct sockaddr*)(&sin), sizeof(struct sockaddr_in))) {
|
||||
fprintf(stderr, "failed to connect!\n");
|
||||
fprintf(stderr, "failed to connect.\n");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
/* Create a session instance */
|
||||
session = libssh2_session_init();
|
||||
if(!session) {
|
||||
fprintf(stderr, "Could not initialize SSH session!\n");
|
||||
fprintf(stderr, "Could not initialize SSH session.\n");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
@ -116,7 +116,7 @@ int main(int argc, char *argv[])
|
||||
if(userauthlist) {
|
||||
fprintf(stderr, "Authentication methods: %s\n", userauthlist);
|
||||
if(!strstr(userauthlist, "publickey")) {
|
||||
fprintf(stderr, "\"publickey\" authentication is not supported\n");
|
||||
fprintf(stderr, "'publickey' authentication is not supported\n");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
@ -149,7 +149,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
if(libssh2_agent_userauth(agent, username, identity)) {
|
||||
fprintf(stderr, "Authentication with username %s and "
|
||||
"public key %s failed!\n",
|
||||
"public key %s failed.\n",
|
||||
username, identity->comment);
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user