1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 22:06:38 +02:00

core: fix typos in many comments and some strings

This commit is contained in:
Sebastien Helleu
2013-03-17 12:55:20 +01:00
parent 46677c79fc
commit 149c77decd
70 changed files with 228 additions and 217 deletions
+3 -3
View File
@@ -83,7 +83,7 @@ xfer_dcc_send_file_child (struct t_xfer *xfer)
recv (xfer->sock, (char *) &ack, 4, 0);
xfer->ack = ntohl (ack);
/* DCC send ok? */
/* DCC send OK? */
if ((xfer->pos >= xfer->size)
&& (xfer->ack >= xfer->size))
{
@@ -161,8 +161,8 @@ xfer_dcc_send_file_child (struct t_xfer *xfer)
}
/*
* if send if ok since 2 seconds or more, and that no ack was received,
* then consider it's ok
* if send if OK since 2 seconds or more, and that no ACK was received,
* then consider it's OK
*/
if ((sent_ok != 0) && (new_time > sent_ok + 2))
{
+1 -1
View File
@@ -324,7 +324,7 @@ xfer_close (struct t_xfer *xfer, enum t_xfer_status status)
}
}
/* remove empty file if received file failed and nothing was transfered */
/* remove empty file if received file failed and nothing was transferred */
if (((xfer->status == XFER_STATUS_FAILED)
|| (xfer->status == XFER_STATUS_ABORTED))
&& XFER_IS_FILE(xfer->type)
+6 -6
View File
@@ -56,7 +56,7 @@ enum t_xfer_status
XFER_STATUS_ACTIVE, /* sending/receiving data */
XFER_STATUS_DONE, /* transfer done */
XFER_STATUS_FAILED, /* transfer failed */
XFER_STATUS_ABORTED, /* transfer aborded by user */
XFER_STATUS_ABORTED, /* transfer aborted by user */
/* number of xfer status */
XFER_NUM_STATUS,
};
@@ -65,7 +65,7 @@ enum t_xfer_status
enum t_xfer_error
{
XFER_NO_ERROR = 0, /* no error to report, all ok! */
XFER_NO_ERROR = 0, /* no error to report, all OK! */
/* errors for sender: */
XFER_ERROR_READ_LOCAL, /* unable to read local file */
XFER_ERROR_SEND_BLOCK, /* unable to send block to receiver */
@@ -79,10 +79,10 @@ enum t_xfer_error
XFER_NUM_ERRORS,
};
/* xfer blocksize */
/* xfer block size */
#define XFER_BLOCKSIZE_MIN 1024 /* min blocksize */
#define XFER_BLOCKSIZE_MAX 102400 /* max blocksize */
#define XFER_BLOCKSIZE_MIN 1024 /* min block size */
#define XFER_BLOCKSIZE_MAX 102400 /* max block size */
/* separator in filenames */
@@ -140,7 +140,7 @@ struct t_xfer
int child_read; /* to read into child pipe */
int child_write; /* to write into child pipe */
struct t_hook *hook_fd; /* hook for socket or child pipe */
struct t_hook *hook_timer; /* timeout for recever accept */
struct t_hook *hook_timer; /* timeout for receiver accept */
char *unterminated_message; /* beginning of a message */
int file; /* local file (read or write) */
char *local_filename; /* local filename (with path) */