aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--field.c14
2 files changed, 10 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index e8bd1f53..a5fa974c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2017-03-09 Arnold D. Robbins <arnold@skeeve.com>
+
+ * field.c: Minor style edits.
+
2017-03-06 Andrew J. Schorr <aschorr@telemetry-investments.com>
* field.c (normal_parse_field): Renamed from save_parse_field to reflect
diff --git a/field.c b/field.c
index 276669f8..5bdc05f7 100644
--- a/field.c
+++ b/field.c
@@ -322,12 +322,9 @@ set_record(const char *buf, int cnt, const int *fw)
parse_field = api_parse_field;
update_PROCINFO_str("FS", "API");
}
- }
- else {
- if (parse_field != normal_parse_field) {
- parse_field = normal_parse_field;
- update_PROCINFO_str("FS", current_field_sep_str());
- }
+ } else if (parse_field != normal_parse_field) {
+ parse_field = normal_parse_field;
+ update_PROCINFO_str("FS", current_field_sep_str());
}
}
@@ -789,6 +786,7 @@ fw_parse_field(long up_to, /* parse only up to this field number */
*
* This is called from get_field() via (*parse_field)().
*/
+
static long
api_parse_field(long up_to, /* parse only up to this field number */
char **buf, /* on input: string to parse; on output: point to start next */
@@ -1350,7 +1348,7 @@ choose_fs_function:
FS_regexp = FS_re_yes_case;
}
-/* current_field_sep --- return what field separator is */
+/* current_field_sep --- return the field separator type */
field_sep_type
current_field_sep()
@@ -1365,7 +1363,7 @@ current_field_sep()
return Using_FS;
}
-/* current_field_sep --- return what field separator is */
+/* current_field_sep_str --- return the field separator type as a string */
const char *
current_field_sep_str()