mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
41ba7e9b13
commit
ea58272861
3 changed files with 3 additions and 3 deletions
|
|
@ -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…
Reference in a new issue