X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=src%2Flanguage%2Fdata-io%2Ffile-handle.q;h=c29a5fedd0374d011355fe0306bbfe1a6849aadf;hb=a46ed36dcbab01d36c08cf560ff96a7effd9779a;hp=3e053ed57262eb5f6e94d404ed5686253e640a16;hpb=8f04b0ced35a66cfdebefbcb53c81979add36ca3;p=pspp-builds.git
diff --git a/src/language/data-io/file-handle.q b/src/language/data-io/file-handle.q
index 3e053ed5..c29a5fed 100644
--- a/src/language/data-io/file-handle.q
+++ b/src/language/data-io/file-handle.q
@@ -15,13 +15,13 @@
along with this program. If not, see . */
#include
+
#include
-#include
-#include
#include
#include
#include
#include
+#include
#include
#include
#include
@@ -129,7 +129,7 @@ cmd_file_handle (struct lexer *lexer, struct dataset *ds)
{
if (cmd.n_lrecl[0] == LONG_MIN)
msg (SE, _("The specified file mode requires LRECL. "
- "Assuming %d-character records."),
+ "Assuming %zu-character records."),
properties.record_width);
else if (cmd.n_lrecl[0] < 1 || cmd.n_lrecl[0] >= (1UL << 31))
msg (SE, _("Record length (%ld) must be between 1 and %lu bytes. "
@@ -200,7 +200,7 @@ fh_parse (struct lexer *lexer, enum fh_referent referent_mask)
handle = fh_inline_file ();
else
{
- if (lex_token (lexer) != T_ID && lex_token (lexer) != T_STRING)
+ if (lex_token (lexer) != T_ID && !lex_is_string (lexer))
{
lex_error (lexer, _("expecting a file name or handle name"));
return NULL;