aboutsummaryrefslogtreecommitdiffstats
path: root/src/serdi.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-16 13:01:54 +0200
committerDavid Robillard <d@drobilla.net>2020-08-16 13:56:40 +0200
commit4f544720cc81fd4e3418b5d8363e141dbedec0b9 (patch)
treeb439248b96c84e043ff454b0f45330a452cc0d72 /src/serdi.c
parentbb1a00aac2e2315a88ef0274455e510afa79ea95 (diff)
downloadserd-4f544720cc81fd4e3418b5d8363e141dbedec0b9.tar.gz
serd-4f544720cc81fd4e3418b5d8363e141dbedec0b9.tar.bz2
serd-4f544720cc81fd4e3418b5d8363e141dbedec0b9.zip
Use conventional short variable name for status
Diffstat (limited to 'src/serdi.c')
-rw-r--r--src/serdi.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/serdi.c b/src/serdi.c
index ec961f5c..6838fc0c 100644
--- a/src/serdi.c
+++ b/src/serdi.c
@@ -313,15 +313,15 @@ main(int argc, char** argv)
serd_writer_chop_blank_prefix(writer, chop_prefix);
serd_reader_add_blank_prefix(reader, add_prefix);
- SerdStatus status = SERD_SUCCESS;
+ SerdStatus st = SERD_SUCCESS;
if (!from_file) {
- status = serd_reader_read_string(reader, input);
+ st = serd_reader_read_string(reader, input);
} else if (bulk_read) {
- status = serd_reader_read_file_handle(reader, in_fd, in_name);
+ st = serd_reader_read_file_handle(reader, in_fd, in_name);
} else {
- status = serd_reader_start_stream(reader, in_fd, in_name, false);
- while (!status) {
- status = serd_reader_read_chunk(reader);
+ st = serd_reader_start_stream(reader, in_fd, in_name, false);
+ while (!st) {
+ st = serd_reader_read_chunk(reader);
}
serd_reader_end_stream(reader);
}
@@ -338,8 +338,8 @@ main(int argc, char** argv)
if (fclose(out_fd)) {
perror("serdi: write error");
- status = SERD_ERR_UNKNOWN;
+ st = SERD_ERR_UNKNOWN;
}
- return (status > SERD_FAILURE) ? 1 : 0;
+ return (st > SERD_FAILURE) ? 1 : 0;
}