aboutsummaryrefslogtreecommitdiffstats
path: root/src/serdi.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-05-05 11:46:01 +0200
committerDavid Robillard <d@drobilla.net>2019-12-19 20:58:00 -0500
commit552803a61c0f98dcf682ae4d44935e32c6b80472 (patch)
tree5a8af24d6aed4eb91179e0a61ce2003461de4daa /src/serdi.c
parentbc8666f26b616523990f20f165705dff73c26d66 (diff)
downloadserd-552803a61c0f98dcf682ae4d44935e32c6b80472.tar.gz
serd-552803a61c0f98dcf682ae4d44935e32c6b80472.tar.bz2
serd-552803a61c0f98dcf682ae4d44935e32c6b80472.zip
Use conventional short variable name for status
Diffstat (limited to 'src/serdi.c')
-rw-r--r--src/serdi.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/serdi.c b/src/serdi.c
index a8301c49..6ff13d99 100644
--- a/src/serdi.c
+++ b/src/serdi.c
@@ -229,25 +229,25 @@ main(int argc, char** argv)
serd_reader_add_blank_prefix(reader, add_prefix);
serd_node_free(root);
- SerdStatus status = SERD_SUCCESS;
+ SerdStatus st = SERD_SUCCESS;
SerdNode* input_name = NULL;
if (from_string) {
input_name = serd_new_string("string");
- status = serd_reader_start_string(reader, input, input_name);
+ st = serd_reader_start_string(reader, input, input_name);
} else if (from_stdin) {
input_name = serd_new_string("stdin");
- status = serd_reader_start_stream(reader,
- serd_file_read_byte,
- (SerdStreamErrorFunc)ferror,
- stdin,
- input_name,
- 1);
+ st = serd_reader_start_stream(reader,
+ serd_file_read_byte,
+ (SerdStreamErrorFunc)ferror,
+ stdin,
+ input_name,
+ 1);
} else {
- status = serd_reader_start_file(reader, input, bulk_read);
+ st = serd_reader_start_file(reader, input, bulk_read);
}
- if (!status) {
- status = serd_reader_read_document(reader);
+ if (!st) {
+ st = serd_reader_read_document(reader);
}
serd_reader_finish(reader);
@@ -260,8 +260,8 @@ main(int argc, char** argv)
if (fclose(stdout)) {
perror("serdi: write error");
- status = SERD_ERR_UNKNOWN;
+ st = SERD_ERR_UNKNOWN;
}
- return (status > SERD_FAILURE) ? 1 : 0;
+ return (st > SERD_FAILURE) ? 1 : 0;
}