diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-08-19 13:37:19 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-08-19 13:37:19 +0200 |
commit | ce5160a39d26a8e7cf0633d0d144436a5156837a (patch) | |
tree | 5ac139854c4d620f7549c4be4c1231644ba0a49b /src/mds-vt.c | |
parent | typo + continued work on mds-colour (diff) | |
download | mds-ce5160a39d26a8e7cf0633d0d144436a5156837a.tar.gz mds-ce5160a39d26a8e7cf0633d0d144436a5156837a.tar.bz2 mds-ce5160a39d26a8e7cf0633d0d144436a5156837a.tar.xz |
put full_send in libmdsserver, clients that only has one socket uses a macro to remove the socket parameter
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/mds-vt.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/mds-vt.c b/src/mds-vt.c index 2490eee..f8a05e7 100644 --- a/src/mds-vt.c +++ b/src/mds-vt.c @@ -722,38 +722,6 @@ void received_switch_vt(int signo) /** - * Send a full message even if interrupted - * - * @param socket The file descriptor for the socket to use - * @param message The message to send - * @param length The length of the message - * @return Zero on success, -1 on error - */ -int full_send(int socket, const char* message, size_t length) -{ - size_t sent; - - while (length > 0) - { - sent = send_message(socket, message, length); - if (sent > length) - { - eprint("Sent more of a message than exists in the message, aborting."); - return -1; - } - else - fail_if ((sent < length) && (errno != EINTR)); - message += sent; - length -= sent; - } - return 0; - fail: - xperror(*argv); - return -1; -} - - -/** * Get the index of the virtual terminal on which the display should be opened * * @return The index of the virtual terminal on which the display should be opened, -1 on error |