Fix some C99 usage.
This commit is contained in:
parent
9e586d627d
commit
959eeb5bcd
|
@ -1,3 +1,9 @@
|
|||
Tue Jan 10 22:55:35 PST 2006 Christian Hammond <chipx86@chipx86.com>
|
||||
|
||||
* tests/test-default-action.c:
|
||||
* tools/notify-send.c:
|
||||
- Fix some C99 usage.
|
||||
|
||||
Tue Jan 10 16:20:27 MST 2006 David Trowbridge <trowbrds@gmail.com>
|
||||
|
||||
* libnotify/Makefile.am:
|
||||
|
|
|
@ -49,10 +49,11 @@ int
|
|||
main()
|
||||
{
|
||||
NotifyNotification *n;
|
||||
DBusConnection *conn;
|
||||
|
||||
if (!notify_init("Default Action Test")) exit(1);
|
||||
|
||||
DBusConnection *conn = dbus_bus_get(DBUS_BUS_SESSION, NULL);
|
||||
conn = dbus_bus_get(DBUS_BUS_SESSION, NULL);
|
||||
loop = g_main_loop_new(NULL, FALSE);
|
||||
|
||||
dbus_connection_setup_with_g_main(conn, NULL);
|
||||
|
|
|
@ -44,8 +44,6 @@ main(int argc, const char **argv)
|
|||
const char **args;
|
||||
NotifyNotification *notify;
|
||||
|
||||
g_type_init ();
|
||||
|
||||
struct poptOption options[] =
|
||||
{
|
||||
{ "urgency", 'u', POPT_ARG_STRING | POPT_ARGFLAG_STRIP, &urgency_str,
|
||||
|
@ -66,6 +64,8 @@ main(int argc, const char **argv)
|
|||
POPT_TABLEEND
|
||||
};
|
||||
|
||||
g_type_init ();
|
||||
|
||||
opt_ctx = poptGetContext("notify-send", argc, argv, options, 0);
|
||||
poptSetOtherOptionHelp(opt_ctx, "[OPTIONS]* <summary> [body]");
|
||||
|
||||
|
|
Loading…
Reference in New Issue