Mailing List Archive

NessusClient/nessus nessus.c, 1.6, 1.7 xstuff.h, 1.2, 1.3 xstuff.c, 1.1.1.1, 1.2
Update of /usr/local/cvs/NessusClient/nessus
In directory raccoon.nessus.org:/tmp/cvs-serv92970

Modified Files:
nessus.c xstuff.h xstuff.c
Log Message:
Simplify code:
Remove init_display from xstuff.c.
It contained only one line and is called
from exactly one place where the single line
is now placed (i.e. gtk_init(&argc, &argv))


Index: nessus.c
===================================================================
RCS file: /usr/local/cvs/NessusClient/nessus/nessus.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- nessus.c 1 Feb 2007 22:43:35 -0000 1.6
+++ nessus.c 1 Feb 2007 23:02:43 -0000 1.7
@@ -33,7 +33,6 @@

#ifdef USE_GTK
#include <gtk/gtk.h>
-#include "xstuff.h"
#include "prefs_dialog/prefs_dialog.h"
#include "prefs_dialog/prefs_context.h"
#endif
@@ -1027,7 +1026,7 @@
#ifdef USE_GTK
else
{
- init_display (&argc, &argv);
+ gtk_init(&argc, &argv);
}
#endif


Index: xstuff.h
===================================================================
RCS file: /usr/local/cvs/NessusClient/nessus/xstuff.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- xstuff.h 11 Feb 2006 01:32:32 -0000 1.2
+++ xstuff.h 1 Feb 2007 23:02:43 -0000 1.3
@@ -29,7 +29,6 @@
#ifndef _NESSUSC_XSTUFF_H
#define _NESSUSC_XSTUFF_H

-int init_display(int *argc, char *** argv);
int close_window(GtkWidget * , GtkWidget * );
int delete_event(GtkWidget * nul, void * data);
GtkWidget *make_pixmap(GtkWidget *, GdkColor *, char **);

Index: xstuff.c
===================================================================
RCS file: /usr/local/cvs/NessusClient/nessus/xstuff.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- xstuff.c 10 Sep 2005 17:36:44 -0000 1.1.1.1
+++ xstuff.c 1 Feb 2007 23:02:43 -0000 1.2
@@ -36,12 +36,6 @@
#include "sighand.h"
#include "context.h"

-int init_display(int *argc, char *** argv)
-{
- gtk_init(argc, argv);
- return(0);
-}
-
int close_window(GtkWidget * nul, GtkWidget * w)
{
gtk_widget_hide(w);

_______________________________________________
Nessus-cvs mailing list
Nessus-cvs@list.nessus.org
http://mail.nessus.org/mailman/listinfo/nessus-cvs