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

@@ -38,7 +38,7 @@
#endif
int
main (int G_GNUC_UNUSED argc, char G_GNUC_UNUSED *argv [])
main (int argc, char *argv [])
{
glibtop_union data;
glibtop_sysdeps sysdeps;

View File

@@ -36,7 +36,7 @@
#endif
int
main (int G_GNUC_UNUSED argc, char G_GNUC_UNUSED *argv [])
main (int argc, char *argv [])
{
glibtop_fsusage fsusage;
glibtop_mountlist mount_list;

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

@@ -488,7 +488,7 @@ handle_signal (int sig)
}
int
main (int G_GNUC_UNUSED argc, char G_GNUC_UNUSED *argv [])
main (int argc, char *argv [])
{
glibtop *server = glibtop_global_server;

View File

@@ -51,7 +51,7 @@ GLIBTOP_SUID_PROC_MAP;
#include <locale.h>
int
main(int G_GNUC_UNUSED argc, char G_GNUC_UNUSED *argv[])
main(int argc, char *argv[])
{
/* !!! WE ARE ROOT HERE - CHANGE WITH CAUTION !!! */

View File

@@ -24,10 +24,10 @@
void
handle_slave_connection (int input, int output)
{
glibtop G_GNUC_UNUSED *server = glibtop_global_server;
int64_t G_GNUC_UNUSED *param_ptr;
void G_GNUC_UNUSED *ptr;
pid_t G_GNUC_UNUSED pid;
glibtop *server = glibtop_global_server;
int64_t *param_ptr;
void *ptr;
pid_t pid;
glibtop_response _resp, *resp = &_resp;
glibtop_command _cmnd, *cmnd = &_cmnd;
@@ -98,10 +98,10 @@ handle_slave_connection (int input, int output)
void
handle_slave_command (glibtop_command *cmnd, glibtop_response *resp,
const void G_GNUC_UNUSED *parameter)
const void *parameter)
{
glibtop *server = glibtop_global_server;
pid_t G_GNUC_UNUSED pid;
pid_t pid;
switch (cmnd->command) {
case GLIBTOP_CMND_SYSDEPS:

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