diff options
Diffstat (limited to 'send.c')
| -rw-r--r-- | send.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -38,7 +38,7 @@ liberror_send_failed(int fd, const void *buf, size_t n, int flags, const char *f #endif #if defined(EAGAIN) || defined(EWOULDBLOCK) desc = "Attempting to send in nonblocking mode but the operation would block " - "or the socket is unbound and all ephemeral ports are currently in used"; + "or the socket is unbound and all ephemeral ports are currently in use"; # if defined(EAGAIN) # if defined(EWOULDBLOCK) && (EAGAIN != EWOULDBLOCK) if (errno == EAGAIN) { @@ -62,7 +62,7 @@ liberror_send_failed(int fd, const void *buf, size_t n, int flags, const char *f errno = saved_errno; # if defined(EWOULDBLOCK) && (EAGAIN != EWOULDBLOCK) } else { - goto first_case_in_eagain: + goto first_case_in_eagain; } # endif # endif @@ -102,13 +102,13 @@ liberror_send_failed(int fd, const void *buf, size_t n, int flags, const char *f desc = "The recipient is specified but the socket is already connected"; break; case EMSGSIZE: - desc = "Message is to large to be sent atomically as required by the socket type"; + desc = "Message is too large to be sent atomically as required by the socket type"; break; case ENETDOWN: desc = "All local network interfaces that can be used to reach the destination are down"; break; case ENETUNREACH: - desc = "No route to the network it present"; + desc = "No route to the network is present"; break; case ENOBUFS: desc = "Insufficient resource available in the system to perform the operation"; @@ -162,7 +162,7 @@ liberror_send_short(int fd, const void *buf, size_t n, int flags, size_t min, si } else { desc = "Sent message was of an unexpected size"; } - liberror_set_error(desc, "send", "liberror-libc", LIBERROR_LIBC_ERRROR_SHORT_WRITE); + liberror_set_error(desc, "send", "liberror-libc", LIBERROR_LIBC_ERROR_SHORT_WRITE); error = liberror_get_error(); error->details_type = LIBERROR_DETAILS_ONE_FILE; error->details.one_file.fd = fd; |
