2005-03-15 Ray Strode <rstrode@redhat.com>
Fix a few -Wall -Werror warnings * info-daemon/NetworkManagerInfo.c: (main): remove unused loop variable. * info-daemon/NetworkManagerInfoDbus.c: (nmi_dbus_nm_is_running): comment out unused static function * src/nm-netlink-monitor.c: (receive_pending_bytes): initialize output variables to NULL/0, on function failure (Problem pointed out by Bryan Clark). git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@498 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
17
ChangeLog
17
ChangeLog
@@ -1,3 +1,20 @@
|
||||
2005-03-15 Ray Strode <rstrode@redhat.com>
|
||||
|
||||
Fix a few -Wall -Werror warnings
|
||||
|
||||
* info-daemon/NetworkManagerInfo.c:
|
||||
(main): remove unused loop variable.
|
||||
|
||||
* info-daemon/NetworkManagerInfoDbus.c:
|
||||
(nmi_dbus_nm_is_running): comment out
|
||||
unused static function
|
||||
|
||||
* src/nm-netlink-monitor.c:
|
||||
(receive_pending_bytes):
|
||||
initialize output variables to NULL/0,
|
||||
on function failure (Problem pointed out
|
||||
by Bryan Clark).
|
||||
|
||||
2005-03-14 Ray Strode <rstrode@redhat.com>
|
||||
|
||||
Fourth (probably working) cut at porting to
|
||||
|
@@ -179,7 +179,6 @@ int main( int argc, char *argv[] )
|
||||
DBusConnection *dbus_connection;
|
||||
int err;
|
||||
NMIAppInfo *app_info = NULL;
|
||||
GMainLoop *loop;
|
||||
guint notify_id;
|
||||
|
||||
struct poptOption options[] =
|
||||
|
@@ -781,6 +781,7 @@ static DBusHandlerResult nmi_dbus_filter (DBusConnection *connection, DBusMessag
|
||||
return (handled ? DBUS_HANDLER_RESULT_HANDLED : DBUS_HANDLER_RESULT_NOT_YET_HANDLED);
|
||||
}
|
||||
|
||||
#if 0
|
||||
/*
|
||||
* nmi_dbus_nm_is_running
|
||||
*
|
||||
@@ -800,6 +801,7 @@ static gboolean nmi_dbus_nm_is_running (DBusConnection *connection)
|
||||
dbus_error_free (&error);
|
||||
return (exists);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
|
@@ -536,7 +536,8 @@ receive_pending_bytes (GIOChannel *channel,
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (pending_bytes->len > 0)
|
||||
out:
|
||||
if ((pending_bytes->len > 0) && succeeded)
|
||||
{
|
||||
if (str_return)
|
||||
*str_return = pending_bytes->str;
|
||||
@@ -556,7 +557,6 @@ receive_pending_bytes (GIOChannel *channel,
|
||||
*length = 0;
|
||||
}
|
||||
|
||||
out:
|
||||
if (pending_bytes != NULL)
|
||||
g_string_free (pending_bytes, TRUE);
|
||||
return succeeded;
|
||||
|
Reference in New Issue
Block a user