shithub: sl

Download patch

ref: 445836a9f06f302ab39aab4d2d1d943656db175d
parent: 11700e8fe75f45de743eb63336f25de1bf398bc5
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Wed Mar 19 22:55:44 EDT 2025

_ios_read, ios_copy_: use bool

--- a/src/ios.c
+++ b/src/ios.c
@@ -202,7 +202,7 @@
 /* interface functions, low level */
 
 static usize
-_ios_read(sl_ios *s, u8int *dest, usize n, int all)
+_ios_read(sl_ios *s, u8int *dest, usize n, bool all)
 {
 	usize tot = 0;
 	usize got, avail;
@@ -654,7 +654,7 @@
 }
 
 static usize
-ios_copy_(sl_ios *to, sl_ios *from, usize nbytes, int all)
+ios_copy_(sl_ios *to, sl_ios *from, usize nbytes, bool all)
 {
 	usize total = 0, avail;
 	if(!ios_eof(from)){
@@ -691,7 +691,7 @@
 usize
 ios_copyall(sl_ios *to, sl_ios *from)
 {
-	return ios_copy_(to, from, 0, 1);
+	return ios_copy_(to, from, 0, true);
 }
 
 #define LINE_CHUNK_SIZE 160