mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
sysutils/whowatch: fix build with llvm22
Fix a type error in a configure snippet that broke with LLVM 22. While here, sync up some prototypes to eliminate a slew of warnings.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
Index: configure.in
|
||||
--- configure.in.orig
|
||||
+++ configure.in
|
||||
@@ -103,7 +103,7 @@ AC_TRY_COMPILE([#include <sys/types.h>
|
||||
#include <sys/sysctl.h>],
|
||||
[
|
||||
int mib[]={CTL_KERN,KERN_PROC,KERN_PROC_PID,1};
|
||||
-int len;
|
||||
+size_t len;
|
||||
sysctl(mib, 4, 0, &len, 0, 0);
|
||||
],
|
||||
[AC_MSG_RESULT(yes); AC_DEFINE(HAVE_PROCESS_SYSCTL)],
|
||||
@@ -0,0 +1,11 @@
|
||||
Index: proctree.h
|
||||
--- proctree.h.orig
|
||||
+++ proctree.h
|
||||
@@ -18,7 +18,6 @@ struct proc_t {
|
||||
};
|
||||
|
||||
int update_tree(void del(void*));
|
||||
-int update_tree();
|
||||
struct proc_t* find_by_pid(int pid);
|
||||
struct proc_t* tree_start(int root, int start);
|
||||
struct proc_t* tree_next();
|
||||
@@ -0,0 +1,16 @@
|
||||
Index: whowatch.h
|
||||
--- whowatch.h.orig
|
||||
+++ whowatch.h
|
||||
@@ -132,10 +132,10 @@ void page_up(struct window *, void (*)());
|
||||
void key_home(struct window *, void (*)());
|
||||
void key_end(struct window *, void (*)());
|
||||
void update_load(void);
|
||||
-void updatescr();
|
||||
+void updatescr(struct window *w);
|
||||
|
||||
/* proctree.c */
|
||||
-int update_tree();
|
||||
+int update_tree(void del(void*));
|
||||
void get_rows_cols(int *, int *);
|
||||
|
||||
/* procinfo.c */
|
||||
Reference in New Issue
Block a user