From bbd6afe03e138886f70989f31be110726ca077d8 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 2 Jun 2010 20:32:23 +0200 Subject: Optimize the blowfish crypt/decrypt code a bit more. --- src/integration.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/integration.c') diff --git a/src/integration.c b/src/integration.c index 9da6e2faa..4b1492c63 100644 --- a/src/integration.c +++ b/src/integration.c @@ -183,7 +183,7 @@ messageFromEserve(XtPointer clientData UNUSED, ackNum = atoi(&cmd[4]); vim_snprintf(buf, sizeof(buf), NOCATGETS("ack %d\n"), ackNum); - write(sd, buf, strlen(buf)); + (void)write(sd, buf, strlen(buf)); } else if (strncmp(cmd, NOCATGETS("addMarkType "), 12) == 0) { int idx; @@ -280,7 +280,7 @@ messageFromEserve(XtPointer clientData UNUSED, vim_snprintf(buf, sizeof(buf), NOCATGETS("markLine %s %d %d\n"), file, markid, line); - write(sd, buf, strlen(buf)); + (void)write(sd, buf, strlen(buf)); } else if (cmd[1] == 'o' && cmd[4] == 'L' && strncmp(cmd, NOCATGETS("gotoLine "), 9) == 0) { char *file; @@ -729,10 +729,10 @@ void workshop_connect(XtAppContext context) workshop_get_editor_name(), PROTOCOL_VERSION, workshop_get_editor_version()); - write(sd, buf, strlen(buf)); + (void)write(sd, buf, strlen(buf)); vim_snprintf(buf, sizeof(buf), NOCATGETS("ack 1\n")); - write(sd, buf, strlen(buf)); + (void)write(sd, buf, strlen(buf)); } void workshop_disconnect() @@ -1059,7 +1059,7 @@ void workshop_file_closed(char *filename) char buffer[2*MAXPATHLEN]; vim_snprintf(buffer, sizeof(buffer), NOCATGETS("deletedFile %s\n"), filename); - write(sd, buffer, strlen(buffer)); + (void)write(sd, buffer, strlen(buffer)); } #endif @@ -1068,7 +1068,7 @@ void workshop_file_closed_lineno(char *filename, int lineno) char buffer[2*MAXPATHLEN]; vim_snprintf(buffer, sizeof(buffer), NOCATGETS("deletedFile %s %d\n"), filename, lineno); - write(sd, buffer, strlen(buffer)); + (void)write(sd, buffer, strlen(buffer)); } void workshop_file_opened(char *filename, int readOnly) @@ -1076,7 +1076,7 @@ void workshop_file_opened(char *filename, int readOnly) char buffer[2*MAXPATHLEN]; vim_snprintf(buffer, sizeof(buffer), NOCATGETS("loadedFile %s %d\n"), filename, readOnly); - write(sd, buffer, strlen(buffer)); + (void)write(sd, buffer, strlen(buffer)); } @@ -1085,7 +1085,7 @@ void workshop_file_saved(char *filename) char buffer[2*MAXPATHLEN]; vim_snprintf(buffer, sizeof(buffer), NOCATGETS("savedFile %s\n"), filename); - write(sd, buffer, strlen(buffer)); + (void)write(sd, buffer, strlen(buffer)); /* Let editor report any moved marks that the eserve client * should deal with (for example, moving location-based breakpoints) */ @@ -1098,7 +1098,7 @@ void workshop_file_modified(char *filename) char buffer[2*MAXPATHLEN]; vim_snprintf(buffer, sizeof(buffer), NOCATGETS("modifiedFile %s\n"), filename); - write(sd, buffer, strlen(buffer)); + (void)write(sd, buffer, strlen(buffer)); } void workshop_move_mark(char *filename, int markId, int newLineno) @@ -1106,7 +1106,7 @@ void workshop_move_mark(char *filename, int markId, int newLineno) char buffer[2*MAXPATHLEN]; vim_snprintf(buffer, sizeof(buffer), NOCATGETS("moveMark %s %d %d\n"), filename, markId, newLineno); - write(sd, buffer, strlen(buffer)); + (void)write(sd, buffer, strlen(buffer)); } #endif @@ -1119,7 +1119,7 @@ void workshop_frame_moved(int new_x, int new_y, int new_w, int new_h) vim_snprintf(buffer, sizeof(buffer), NOCATGETS("frameAt %d %d %d %d\n"), new_x, new_y, new_w, new_h); - write(sd, buffer, strlen(buffer)); + (void)write(sd, buffer, strlen(buffer)); } } @@ -1179,7 +1179,7 @@ void workshop_perform_verb(char *verb, void *clientData) selEndLine, selEndCol, selLength, selection); - write(sd, buf, strlen(buf)); + (void)write(sd, buf, strlen(buf)); if (*selection) { free(selection); } @@ -1190,7 +1190,7 @@ void workshop_perform_verb(char *verb, void *clientData) #if defined(NOHANDS_SUPPORT_FUNCTIONS) || defined(FEAT_BEVAL) void workshop_send_message(char *buf) { - write(sd, buf, strlen(buf)); + (void)write(sd, buf, strlen(buf)); } #endif -- cgit v1.2.1