From 33fc3600004690a9e1868b5fb1ca81da79c2fd61 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 23 Dec 2011 02:44:02 +0000 Subject: Use serd_file_sink. git-svn-id: http://svn.drobilla.net/sord/trunk@184 3d64ff67-21c5-427c-a301-fe4f08042e5a --- src/sordi.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/sordi.c') diff --git a/src/sordi.c b/src/sordi.c index 6339459..b781024 100644 --- a/src/sordi.c +++ b/src/sordi.c @@ -56,13 +56,6 @@ print_usage(const char* name, bool error) return error ? 1 : 0; } -static size_t -file_sink(const void* buf, size_t len, void* stream) -{ - FILE* file = (FILE*)stream; - return fwrite(buf, 1, len, file); -} - bool set_syntax(SerdSyntax* syntax, const char* name) { @@ -205,7 +198,7 @@ main(int argc, char** argv) SerdWriter* writer = serd_writer_new( output_syntax, output_style, - write_env, &base_uri, file_sink, stdout); + write_env, &base_uri, serd_file_sink, stdout); // Write @prefix directives serd_env_foreach(env, -- cgit v1.2.1