Skip to content

Commit

Permalink
spelling: occurrence
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref committed Aug 29, 2017
1 parent ac8c76f commit 045341d
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/logcollector/read_command.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void *read_command(int pos, int *rc, int drop_it)
cmd_size = strlen(str);

while (fgets(str + cmd_size, OS_MAXSTR - OS_LOG_HEADER - 256, cmd_output) != NULL) {
/* Get the last occurence of \n */
/* Get the last occurrence of \n */
if ((p = strrchr(str, '\n')) != NULL) {
*p = '\0';
}
Expand Down
2 changes: 1 addition & 1 deletion src/logcollector/read_djb_multilog.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void *read_djbmultilog(int pos, int *rc, int drop_it)
/* Get buffer size */
str_len = strlen(str);

/* Getting the last occurence of \n */
/* Getting the last occurrence of \n */
if ((p = strrchr(str, '\n')) != NULL) {
*p = '\0';

Expand Down
2 changes: 1 addition & 1 deletion src/logcollector/read_fullcommand.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void *read_fullcommand(int pos, int *rc, int drop_it)
if (n > 0) {
str[cmd_size + n] = '\0';

/* Get the last occurence of \n */
/* Get the last occurrence of \n */
if ((p = strrchr(str, '\n')) != NULL) {
*p = '\0';
}
Expand Down
2 changes: 1 addition & 1 deletion src/logcollector/read_mssql_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void *read_mssql_log(int pos, int *rc, int drop_it)
str_len = sizeof(buffer) - 10;
}

/* Get the last occurence of \n */
/* Get the last occurrence of \n */
if ((p = strrchr(str, '\n')) != NULL) {
*p = '\0';

Expand Down
4 changes: 2 additions & 2 deletions src/logcollector/read_multiline.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void *read_multiline(int pos, int *rc, int drop_it)
while (fgets(str, OS_MAXSTR - OS_LOG_HEADER, logff[pos].fp) != NULL) {
linesgot++;

/* Get the last occurence of \n */
/* Get the last occurrence of \n */
if ((p = strrchr(str, '\n')) != NULL) {
*p = '\0';
}
Expand Down Expand Up @@ -93,7 +93,7 @@ void *read_multiline(int pos, int *rc, int drop_it)
if (__ms) {
merror("%s: Large message size: '%s'", ARGV0, str);
while (fgets(str, OS_MAXSTR - 2, logff[pos].fp) != NULL) {
/* Get the last occurence of \n */
/* Get the last occurrence of \n */
if ((p = strrchr(str, '\n')) != NULL) {
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/logcollector/read_mysql_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void *read_mysql_log(int pos, int *rc, int drop_it)
/* Get buffer size */
str_len = strlen(str);

/* Get the last occurence of \n */
/* Get the last occurrence of \n */
if ((p = strrchr(str, '\n')) != NULL) {
*p = '\0';

Expand Down
2 changes: 1 addition & 1 deletion src/logcollector/read_postgresql_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void *read_postgresql_log(int pos, int *rc, int drop_it)
str_len = sizeof(buffer) - 10;
}

/* Get the last occurence of \n */
/* Get the last occurrence of \n */
if ((p = strrchr(str, '\n')) != NULL) {
*p = '\0';

Expand Down
4 changes: 2 additions & 2 deletions src/logcollector/read_syslog.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void *read_syslog(int pos, int *rc, int drop_it)
fgetpos(logff[pos].fp, &fp_pos);

while (fgets(str, OS_MAXSTR - OS_LOG_HEADER, logff[pos].fp) != NULL) {
/* Get the last occurence of \n */
/* Get the last occurrence of \n */
if ((p = strrchr(str, '\n')) != NULL) {
*p = '\0';
}
Expand Down Expand Up @@ -87,7 +87,7 @@ void *read_syslog(int pos, int *rc, int drop_it)
snprintf(buf, OUTSIZE, "%s", str);
merror("%s: Large message size(length=%d): '%s...'", ARGV0, (int)strlen(str), buf);
while (fgets(str, OS_MAXSTR - 2, logff[pos].fp) != NULL) {
/* Get the last occurence of \n */
/* Get the last occurrence of \n */
if (strrchr(str, '\n') != NULL) {
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/logcollector/read_win_el.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ void win_read_vista_sec()
char *key;
char *desc;

/* Get the last occurence of \n */
/* Get the last occurrence of \n */
if ((p = strrchr(buf, '\n')) != NULL) {
*p = '\0';
}
Expand Down

0 comments on commit 045341d

Please sign in to comment.