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:
parent
85ebf97341
commit
8d1a287c1a
@ -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;
|
||||
|
@ -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) {
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user