From: Jan Lentfer Date: Sat, 5 Dec 2009 17:41:19 +0000 (+0100) Subject: top - correctly prototype compare_* functions. Remove debug option from Makefile. X-Git-Tag: v2.7.1~357^2 X-Git-Url: https://gitweb.dragonflybsd.org/~nant/dragonfly.git/commitdiff_plain/603a288d884817c61409f564340ab7a1b8b8aa1c top - correctly prototype compare_* functions. Remove debug option from Makefile. --- diff --git a/usr.bin/top/Makefile b/usr.bin/top/Makefile index d1ca989acb..ce0ff84920 100644 --- a/usr.bin/top/Makefile +++ b/usr.bin/top/Makefile @@ -5,8 +5,9 @@ PROG= top TOPDIR= ${.CURDIR}/../../contrib/top .PATH: ${TOPDIR} -CFLAGS+= -g -DHAVE_GETOPT -DHAVE_STRERROR -I${.CURDIR} -I${.OBJDIR} \ +CFLAGS+= -DHAVE_GETOPT -DHAVE_STRERROR -I${.CURDIR} -I${.OBJDIR} \ -I${TOPDIR} -I. -DORDER + .if ${MACHINE_ARCH} == "i386" CFLAGS+=-D_ENABLEX32 .endif diff --git a/usr.bin/top/m_dragonfly.c b/usr.bin/top/m_dragonfly.c index 4629a98439..98752fef74 100644 --- a/usr.bin/top/m_dragonfly.c +++ b/usr.bin/top/m_dragonfly.c @@ -188,7 +188,9 @@ char *ordernames[] = { }; /* compare routines */ -int proc_compare(), compare_size(), compare_res(), compare_time(), compare_prio(), compare_thr(); +int proc_compare(const void *, const void *), compare_size(const void *, const void *), + compare_res(const void *, const void *), compare_time(const void *, const void *), + compare_prio(const void *, const void *), compare_thr(const void *, const void *); int (*proc_compares[]) () = { proc_compare,