Fix the functions to match prototypes. The K&R definitions differ

from the ANSI-C prototype due to the 'int promotion' rule.
This commit is contained in:
imp 2009-02-03 20:25:36 +00:00
parent 85ebf97341
commit 8d1a287c1a
3 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ __FBSDID("$FreeBSD$");
#include <string.h>
void *
memchr(const void *s, unsigned char c, size_t n)
memchr(const void *s, int c, size_t n)
{
if (n != 0) {
const unsigned char *p = s;

View File

@ -38,7 +38,7 @@ __FBSDID("$FreeBSD$");
#include <string.h>
void
strmode(mode_t mode, char *p)
strmode(/* mode_t */ int mode, char *p)
{
/* print type */
switch (mode & S_IFMT) {

View File

@ -37,7 +37,7 @@ __FBSDID("$FreeBSD$");
#include <wchar.h>
wchar_t *
wmemset(wchar_t *s, wchar_t *c, size_t n)
wmemset(wchar_t *s, wchar_t c, size_t n)
{
size_t i;
wchar_t *p;