[PATCH] NM 0.7.0 build error



Tried the freshly released NetworkManager 0.7.0 tarball (Ubuntu Intrepid i386, stock gcc), I get the following build error:


m-netlink-monitor.c
cc1: warnings being treated as errors
nm-netlink-monitor.c: In function ‘nm_netlink_monitor_error_handler’:
nm-netlink-monitor.c:488: error: format not a string literal and no format arguments


Patch:

--- NetworkManager-0.7.0/src/nm-netlink-monitor.c 2008-11-25 16:46:39.000000000 +0000 +++ NetworkManager-0.7.0-1/src/nm-netlink-monitor.c 2008-12-15 23:04:48.000000000 +0000
@@ -485,7 +485,7 @@ nm_netlink_monitor_error_handler (GIOCha

socket_error = g_error_new (NM_NETLINK_MONITOR_ERROR,
NM_NETLINK_MONITOR_ERROR_WAITING_FOR_SOCKET_DATA,
- err_msg);
+ "%s", err_msg);

g_signal_emit (G_OBJECT (monitor),
signals[ERROR],


Regards,

João Valverde




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]