The second to arg to snprintf(3) is of type size_t.

This commit is contained in:
Steve Price 1999-09-20 01:51:41 +00:00
parent 5238dc8709
commit e81267d8c7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=21795

View File

@ -0,0 +1,20 @@
--- include/standard.h.orig Sun Sep 19 19:12:55 1999
+++ include/standard.h Sun Sep 19 19:14:12 1999
@@ -23,6 +23,8 @@
#ifndef _STANDARD_H
#define _STANDARD_H
+#include <sys/types.h>
+
#ifdef M68000
# ifndef tos
# define JOS 1
@@ -182,7 +184,7 @@
extern int wait_chld __PR((int));
extern int geterrno __PR((void));
extern void raisecond __PR((const char *, long));
-extern int snprintf __PR((char *, unsigned, const char *, ...));
+extern int snprintf __PR((char *, size_t, const char *, ...));
/*extern int sprintf __PR((char *, const char *, ...)); ist woanders falsch deklariert !!!*/
extern char *strcatl __PR((char *, ...));
extern int streql __PR((const char *, const char *));