Fix compiler warnings from Solaris implementation
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
#include <procfs.h>
|
||||
@@ -28,7 +29,7 @@ static gushort _cpu_count = 0;
|
||||
static gulong ticks_total_delta = 0;
|
||||
|
||||
static void
|
||||
init_stats ()
|
||||
init_stats (void)
|
||||
{
|
||||
kc = kstat_open ();
|
||||
}
|
||||
@@ -171,7 +172,6 @@ get_task_details (guint pid, Task *task)
|
||||
{
|
||||
FILE *file;
|
||||
gchar filename[96];
|
||||
gchar pstate[2];
|
||||
struct passwd *pw;
|
||||
psinfo_t process;
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ enum
|
||||
|
||||
void get_owner_uid (guint *owner_uid, gchar **owner_uid_name);
|
||||
gchar * get_hostname ();
|
||||
gboolean send_signal_to_pid (guint pid, gint signal);
|
||||
gboolean send_signal_to_pid (guint pid, gint xtm_signal);
|
||||
gboolean set_priority_to_pid (guint pid, gint priority);
|
||||
|
||||
#endif /* !TASK_MANAGER_H */
|
||||
|
||||
Reference in New Issue
Block a user