mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 13:38:43 +02:00
2005-03-15 Ray Strode <rstrode@redhat.com>
* src/NetworkManagerDbus.c: Fix some sign weirdness that gcc4 doesn't like, and add a header file so PPC can hopefully find SIGTRAP git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@499 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
dfcc12908b
commit
3e34da5beb
2 changed files with 8 additions and 19 deletions
18
ChangeLog
18
ChangeLog
|
|
@ -1,19 +1,9 @@
|
||||||
2005-03-15 Ray Strode <rstrode@redhat.com>
|
2005-03-15 Ray Strode <rstrode@redhat.com>
|
||||||
|
|
||||||
Fix a few -Wall -Werror warnings
|
* src/NetworkManagerDbus.c:
|
||||||
|
Fix some sign weirdness that gcc4 doesn't like,
|
||||||
* info-daemon/NetworkManagerInfo.c:
|
and add a header file so PPC can hopefully find
|
||||||
(main): remove unused loop variable.
|
SIGTRAP
|
||||||
|
|
||||||
* 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>
|
2005-03-14 Ray Strode <rstrode@redhat.com>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@
|
||||||
#include <dbus/dbus-glib-lowlevel.h>
|
#include <dbus/dbus-glib-lowlevel.h>
|
||||||
#include <dbus/dbus-glib.h>
|
#include <dbus/dbus-glib.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
#include <signal.h>
|
||||||
#include <iwlib.h>
|
#include <iwlib.h>
|
||||||
#include <netinet/ether.h>
|
#include <netinet/ether.h>
|
||||||
|
|
||||||
|
|
@ -74,7 +75,7 @@ DBusMessage *nm_dbus_create_error_message (DBusMessage *message, const char *exc
|
||||||
* Copies the object path for a device object. Caller must free returned string.
|
* Copies the object path for a device object. Caller must free returned string.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
static unsigned char * nm_dbus_get_object_path_from_device (NMDevice *dev)
|
static gchar * nm_dbus_get_object_path_from_device (NMDevice *dev)
|
||||||
{
|
{
|
||||||
char *object_path, *escaped_object_path;
|
char *object_path, *escaped_object_path;
|
||||||
|
|
||||||
|
|
@ -263,7 +264,7 @@ void nm_dbus_schedule_device_status_change (NMDevice *dev, DeviceStatus status)
|
||||||
void nm_dbus_signal_device_status_change (DBusConnection *connection, NMDevice *dev, DeviceStatus status)
|
void nm_dbus_signal_device_status_change (DBusConnection *connection, NMDevice *dev, DeviceStatus status)
|
||||||
{
|
{
|
||||||
DBusMessage *message;
|
DBusMessage *message;
|
||||||
unsigned char *dev_path;
|
gchar *dev_path;
|
||||||
const char *signal = NULL;
|
const char *signal = NULL;
|
||||||
NMAccessPoint *ap = NULL;
|
NMAccessPoint *ap = NULL;
|
||||||
|
|
||||||
|
|
@ -402,7 +403,7 @@ void nm_dbus_signal_network_status_change (DBusConnection *connection, NMData *d
|
||||||
void nm_dbus_signal_device_ip4_address_change (DBusConnection *connection, NMDevice *dev)
|
void nm_dbus_signal_device_ip4_address_change (DBusConnection *connection, NMDevice *dev)
|
||||||
{
|
{
|
||||||
DBusMessage *message;
|
DBusMessage *message;
|
||||||
unsigned char *dev_path;
|
gchar *dev_path;
|
||||||
|
|
||||||
g_return_if_fail (connection != NULL);
|
g_return_if_fail (connection != NULL);
|
||||||
g_return_if_fail (dev != NULL);
|
g_return_if_fail (dev != NULL);
|
||||||
|
|
@ -439,7 +440,6 @@ void nm_dbus_signal_wireless_network_change (DBusConnection *connection, NMDevic
|
||||||
DBusMessage *message;
|
DBusMessage *message;
|
||||||
char *dev_path;
|
char *dev_path;
|
||||||
char *ap_path;
|
char *ap_path;
|
||||||
const char *signal;
|
|
||||||
|
|
||||||
g_return_if_fail (connection != NULL);
|
g_return_if_fail (connection != NULL);
|
||||||
g_return_if_fail (dev != NULL);
|
g_return_if_fail (dev != NULL);
|
||||||
|
|
@ -1168,7 +1168,6 @@ gboolean nm_dbus_is_info_daemon_running (DBusConnection *connection)
|
||||||
DBusConnection *nm_dbus_init (NMData *data)
|
DBusConnection *nm_dbus_init (NMData *data)
|
||||||
{
|
{
|
||||||
DBusError error;
|
DBusError error;
|
||||||
dbus_bool_t success;
|
|
||||||
DBusConnection *connection;
|
DBusConnection *connection;
|
||||||
DBusObjectPathVTable nm_vtable = {NULL, &nm_dbus_nm_message_handler, NULL, NULL, NULL, NULL};
|
DBusObjectPathVTable nm_vtable = {NULL, &nm_dbus_nm_message_handler, NULL, NULL, NULL, NULL};
|
||||||
DBusObjectPathVTable devices_vtable = {NULL, &nm_dbus_devices_message_handler, NULL, NULL, NULL, NULL};
|
DBusObjectPathVTable devices_vtable = {NULL, &nm_dbus_devices_message_handler, NULL, NULL, NULL, NULL};
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue