Fix compiler warnings from Solaris implementation

This commit is contained in:
Mike Massonnet
2010-06-09 13:48:57 +02:00
parent 1506382577
commit cfae61f98d
2 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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 */