From d8daac8926e766ee48c727359aa553c185db0564 Mon Sep 17 00:00:00 2001 From: David Given Date: Sat, 14 Mar 2015 14:42:15 +0100 Subject: [PATCH] Fix some type issues to be more standard (and work with cc65's overly picky type checker). --HG-- extra : source : c896b634f0a79897190063ca710c131bd7c95bc7 --- Library/include/stdlib.h | 2 +- Library/include/syscalls.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/include/stdlib.h b/Library/include/stdlib.h index 1475175b..0b40a42a 100644 --- a/Library/include/stdlib.h +++ b/Library/include/stdlib.h @@ -67,7 +67,7 @@ extern int atexit __P((atexit_t)); extern char *crypt __P((char *__key, char *__salt)); -typedef int (*cmp_func_t) __P((void *, void *)); +typedef int (*cmp_func_t) __P((const void *, const void *)); extern int _bsearch; extern void *bsearch __P((void *key, void *base, size_t num, size_t size, cmp_func_t cmp)); diff --git a/Library/include/syscalls.h b/Library/include/syscalls.h index b4640461..98dc586e 100644 --- a/Library/include/syscalls.h +++ b/Library/include/syscalls.h @@ -122,7 +122,7 @@ extern int fchown(int fd, uid_t owner, gid_t group); extern int mkdir(const char *path, mode_t mode); extern int rmdir(const char *path); extern pid_t setpgrp(void); -extern int waitpid(pid_t pid, int *status, int options); +extern pid_t waitpid(pid_t pid, int *status, int options); extern int uadmin(int cmd, int ctrl, void *ptr); extern int nice(int prio); extern int rename(const char *path, const char *newpath); -- 2.34.1