From: John Darrington Date: Fri, 1 Jun 2007 02:32:13 +0000 (+0000) Subject: Changed return type from int to bool X-Git-Tag: v0.6.0~465 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=909f10f57c532130c7fb16c103b1328416f5fb06;p=pspp-builds.git Changed return type from int to bool --- diff --git a/src/data/sys-file-writer.c b/src/data/sys-file-writer.c index 13916d8b..808a307e 100644 --- a/src/data/sys-file-writer.c +++ b/src/data/sys-file-writer.c @@ -927,7 +927,7 @@ static void write_compressed_data (struct sfm_writer *w, const flt64 *elem); /* Writes case C to system file W. Returns 1 if successful, 0 if an I/O error occurred. */ -int +bool sfm_write_case (struct sfm_writer *w, const struct ccase *c) { if (ferror (w->file)) diff --git a/src/data/sys-file-writer.h b/src/data/sys-file-writer.h index 93f15970..9773230e 100644 --- a/src/data/sys-file-writer.h +++ b/src/data/sys-file-writer.h @@ -24,7 +24,7 @@ /* Writing system files. */ /* Options for creating a system file. */ -struct sfm_write_options +struct sfm_write_options { bool create_writeable; /* File perms: writeable or read/only? */ bool compress; /* Compress file? */ @@ -38,7 +38,7 @@ struct sfm_writer *sfm_open_writer (struct file_handle *, struct dictionary *, struct sfm_write_options); struct sfm_write_options sfm_writer_default_options (void); -int sfm_write_case (struct sfm_writer *, const struct ccase *); +bool sfm_write_case (struct sfm_writer *, const struct ccase *); bool sfm_write_error (const struct sfm_writer *); bool sfm_close_writer (struct sfm_writer *);