diff options
author | Yaakov Selkowitz <yselkowitz@users.sourceforge.net> | 2010-10-04 22:00:57 -0500 |
---|---|---|
committer | Yaakov Selkowitz <yselkowitz@users.sourceforge.net> | 2010-10-07 12:56:10 -0500 |
commit | e25648983336d4ed3b56ba3d295208f265f95ce2 (patch) | |
tree | adf2c4eeb15e74fbb29fd5eb26ea74918c303f59 | |
parent | 1652442c2f82d30d0ed4d9cfbd6d3725b09f4a29 (diff) |
Fix old-style function definitions on Cygwin
get_load.c: In function ‘InitLoadPoint’:
get_load.c:74:6: warning: old-style function definition
get_load.c: In function ‘GetLoadPoint’:
get_load.c:92:6: warning: old-style function definition
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Tested-by: Jon TURNEY <jon.turney@dronecode.org.uk>
-rw-r--r-- | get_load.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -71,7 +71,7 @@ static long (__stdcall *pdhaddcounter)(HANDLE, LPCSTR, DWORD, HANDLE*); static long (__stdcall *pdhcollectquerydata)(HANDLE); static long (__stdcall *pdhgetformattedcountervalue)(HANDLE, DWORD, LPDWORD, COUNTER*); #define CYGWIN_PERF -void InitLoadPoint() +void InitLoadPoint(void) { long ret; hdll=LoadLibrary("pdh.dll"); @@ -89,10 +89,10 @@ void InitLoadPoint() ret = pdhaddcounter(query, "\\Processor(_Total)\\% Processor Time", 0, &counter); if (ret!=0) exit(-1); } -void GetLoadPoint( w, closure, call_data ) /* SYSV386 version */ - Widget w; /* unused */ - XtPointer closure; /* unused */ - XtPointer call_data; /* pointer to (double) return value */ +void GetLoadPoint( + Widget w, /* unused */ + XtPointer closure, /* unused */ + XtPointer call_data) /* pointer to (double) return value */ { double *loadavg = (double *)call_data; COUNTER fmtvalue; |