shithub: scc

Download patch

ref: daf6c273125ec2b9c6776a0f715e0b5449fc997f
parent: 9b3345eaca6c2fe564577e761d611de23760a1cd
author: Hiltjo Posthuma <hiltjo@codemadness.org>
date: Tue Jun 21 15:19:01 EDT 2016

fix typo in stdio.h header: size n to size_t n

--- a/libc/include/amd64-sysv/stdio.h
+++ b/libc/include/amd64-sysv/stdio.h
@@ -35,7 +35,7 @@
 extern int setvbuf(FILE *fp, char *buf, size_t size);
 
 extern size_t fread(void *ptr, size_t size, size_t n, FILE *fp);
-extern size_t fwrite(const void *ptr, size_t size, size n, FILE *fp);
+extern size_t fwrite(const void *ptr, size_t size, size_t n, FILE *fp);
 
 extern int fgetc(FILE *fp);
 extern int getc(FILE *fp);
--- a/libc/include/i386-sysv/stdio.h
+++ b/libc/include/i386-sysv/stdio.h
@@ -35,7 +35,7 @@
 extern int setvbuf(FILE *fp, char *buf, size_t size);
 
 extern size_t fread(void *ptr, size_t size, size_t n, FILE *fp);
-extern size_t fwrite(const void *ptr, size_t size, size n, FILE *fp);
+extern size_t fwrite(const void *ptr, size_t size, size_t n, FILE *fp);
 
 extern int fgetc(FILE *fp);
 extern int getc(FILE *fp);
--- a/libc/include/qbe/stdio.h
+++ b/libc/include/qbe/stdio.h
@@ -35,7 +35,7 @@
 extern int setvbuf(FILE *fp, char *buf, size_t size);
 
 extern size_t fread(void *ptr, size_t size, size_t n, FILE *fp);
-extern size_t fwrite(const void *ptr, size_t size, size n, FILE *fp);
+extern size_t fwrite(const void *ptr, size_t size, size_t n, FILE *fp);
 
 extern int fgetc(FILE *fp);
 extern int getc(FILE *fp);
--- a/libc/include/z80/stdio.h
+++ b/libc/include/z80/stdio.h
@@ -35,7 +35,7 @@
 extern int setvbuf(FILE *fp, char *buf, size_t size);
 
 extern size_t fread(void *ptr, size_t size, size_t n, FILE *fp);
-extern size_t fwrite(const void *ptr, size_t size, size n, FILE *fp);
+extern size_t fwrite(const void *ptr, size_t size, size_t n, FILE *fp);
 
 extern int fgetc(FILE *fp);
 extern int getc(FILE *fp);