Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106994639
D37177.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
598 B
Referenced Files
None
Subscribers
None
D37177.diff
View Options
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c
--- a/usr.bin/script/script.c
+++ b/usr.bin/script/script.c
@@ -73,8 +73,8 @@
struct buf_elm {
TAILQ_ENTRY(buf_elm) link;
- int rpos;
- int len;
+ size_t rpos;
+ size_t len;
char ibuf[];
};
@@ -107,7 +107,6 @@
int
main(int argc, char *argv[])
{
- int cc;
struct termios rtt, stt;
struct winsize win;
struct timeval tv, *tvp;
@@ -116,6 +115,7 @@
char ibuf[BUFSIZ];
fd_set rfd, wfd;
struct buf_elm *be;
+ ssize_t cc;
int aflg, Fflg, kflg, pflg, ch, k, n, fcm;
int flushtime, readstdin;
int fm_fd, fm_log;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 9, 4:54 PM (8 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15733593
Default Alt Text
D37177.diff (598 B)
Attached To
Mode
D37177: script: Use size_t / ssize_t where needed. script: Further usage string nits.
Attached
Detach File
Event Timeline
Log In to Comment