Removed G_GNUC_UNUSED.

This commit is contained in:
Martin Baulig
1998-10-06 09:04:27 +00:00
parent 0659b93dff
commit cf0e724f7d
18 changed files with 31 additions and 31 deletions

View File

@@ -103,7 +103,7 @@ adjust_blocks (blocks, fromsize, tosize)
static int
get_fs_usage (path, disk, fsp)
const char *path;
const char G_GNUC_UNUSED *disk;
const char *disk;
struct fs_usage *fsp;
{
#ifdef STAT_STATFS3_OSF1

View File

@@ -33,7 +33,7 @@
glibtop_inodedb *
glibtop_inodedb_open_s (glibtop *server, unsigned databases,
unsigned long G_GNUC_UNUSED cachesize)
unsigned long cachesize)
{
glibtop_inodedb *inodedb;
char filename [BUFSIZ];
@@ -76,7 +76,7 @@ glibtop_inodedb_open_s (glibtop *server, unsigned databases,
}
const char *
glibtop_inodedb_lookup_s (glibtop G_GNUC_UNUSED *server,
glibtop_inodedb_lookup_s (glibtop *server,
glibtop_inodedb *inodedb,
u_int64_t device, u_int64_t inode)
{

View File

@@ -260,7 +260,7 @@ fstype_to_string (t)
static struct mount_entry *
read_filesystem_list (need_fs_type, all_fs)
int G_GNUC_UNUSED need_fs_type, G_GNUC_UNUSED all_fs;
int need_fs_type, all_fs;
{
struct mount_entry *mount_list;
struct mount_entry *me;

View File

@@ -64,7 +64,7 @@ glibtop_strdup_r (glibtop *server, const char *string)
}
void
glibtop_free_r (glibtop G_GNUC_UNUSED *server, const void *ptr)
glibtop_free_r (glibtop *server, const void *ptr)
{
if (ptr) free ((void *) ptr);
}

View File

@@ -25,5 +25,5 @@
/* Closes pipe to gtop server. */
void
glibtop_close_p (glibtop G_GNUC_UNUSED *server)
glibtop_close_p (glibtop *server)
{ }

View File

@@ -24,12 +24,12 @@
#include <glibtop/close.h>
void
glibtop_open_s (glibtop G_GNUC_UNUSED *server,
const char G_GNUC_UNUSED *program_name,
const unsigned long G_GNUC_UNUSED features,
const unsigned G_GNUC_UNUSED flags)
glibtop_open_s (glibtop *server,
const char *program_name,
const unsigned long features,
const unsigned flags)
{ }
void
glibtop_close_s (glibtop G_GNUC_UNUSED *server)
glibtop_close_s (glibtop *server)
{ }

View File

@@ -48,8 +48,8 @@ glibtop_init_p (glibtop *server, const unsigned long features,
void
glibtop_open_p (glibtop *server, const char *program_name,
const unsigned long G_GNUC_UNUSED features,
const unsigned G_GNUC_UNUSED flags)
const unsigned long features,
const unsigned flags)
{
#ifdef DEBUG
fprintf (stderr, "DEBUG (%d): glibtop_open_p ()\n", getpid ());

View File

@@ -44,7 +44,7 @@ glibtop_init_proc_segment_p (glibtop *server)
void
glibtop_get_proc_segment_p (glibtop *server,
glibtop_proc_segment *buf,
pid_t G_GNUC_UNUSED pid)
pid_t pid)
{
glibtop_init_p (server, (1 << GLIBTOP_SYSDEPS_PROC_SEGMENT), 0);

View File

@@ -24,5 +24,5 @@
/* Closes pipe to gtop server. */
void
glibtop_close_s (glibtop G_GNUC_UNUSED *server)
glibtop_close_s (glibtop *server)
{ }

View File

@@ -53,7 +53,7 @@ void
glibtop_get_cpu_s (glibtop *server, glibtop_cpu *buf)
{
char buffer [BUFSIZ], *p;
int fd, len, G_GNUC_UNUSED i;
int fd, len, i;
glibtop_init_s (&server, GLIBTOP_SYSDEPS_CPU, 0);

View File

@@ -56,8 +56,8 @@ static void set_linux_version(void) {
void
glibtop_open_s (glibtop *server, const char *program_name,
const unsigned long G_GNUC_UNUSED features,
const unsigned G_GNUC_UNUSED flags)
const unsigned long features,
const unsigned flags)
{
#ifdef HAVE_LIBGTOP_SMP
char buffer [BUFSIZ], *p;

View File

@@ -52,7 +52,7 @@ void
glibtop_get_proc_time_s (glibtop *server, glibtop_proc_time *buf, pid_t pid)
{
char buffer [BUFSIZ], *p;
int G_GNUC_UNUSED i;
int i;
glibtop_init_s (&server, GLIBTOP_SYSDEPS_PROC_TIME, 0);