master
yutent 2022-08-23 17:41:00 +08:00
parent 6fd4378a1b
commit b6f9c524b9
5 changed files with 5 additions and 9 deletions

View File

@ -32,10 +32,6 @@ libspeed_la_LIBADD = \
@LIBXFCE4PANEL_LIBS@ \ @LIBXFCE4PANEL_LIBS@ \
@LIBXFCE4UI_LIBS@ @LIBXFCE4UI_LIBS@
check_PROGRAMS = commandline
commandline_SOURCES = commandline.c utils.c utils.h net.c net.h
commandline_CFLAGS = @LIBXFCE4PANEL_CFLAGS@
commandline_LDADD = @LIBXFCE4PANEL_LIBS@
# .desktop file # .desktop file
# #
@ -52,7 +48,7 @@ desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@ @INTLTOOL_DESKTOP_RULE@
EXTRA_DIST = \ EXTRA_DIST = \
wormulon commandline.c \ wormulon \
$(desktop_in_in_files) $(desktop_in_in_files)
DISTCLEANFILES = \ DISTCLEANFILES = \

View File

@ -19,7 +19,7 @@ netdata data;
/* ---------------------------------------------------------------------------------------------- */ /* ---------------------------------------------------------------------------------------------- */
void sig_end_handler (int sig) void sig_end_handler (int sig)
{ {
close_netload(&data); close_speed(&data);
exit(0); exit(0);
} }

View File

@ -214,7 +214,7 @@ char* get_ip_address(netdata* data)
/* ---------------------------------------------------------------------------------------------- */ /* ---------------------------------------------------------------------------------------------- */
void close_netload(netdata* data) void close_speed(netdata* data)
{ {
/* We need not code here */ /* We need not code here */
} }

View File

@ -113,6 +113,6 @@ char* get_ip_address(netdata* data);
/** /**
* Should be called to do cleanup work. * Should be called to do cleanup work.
*/ */
void close_netload(netdata* data); void close_speed(netdata* data);
#endif /* NET_H */ #endif /* NET_H */

View File

@ -403,7 +403,7 @@ static void monitor_free(XfcePanelPlugin *plugin, t_global_monitor *global)
gtk_widget_destroy(global->tooltip_text); gtk_widget_destroy(global->tooltip_text);
close_netload( &(global->monitor->data) ); close_speed( &(global->monitor->data) );
g_free(global); g_free(global);
} }