~ubuntu-core-dev/update-notifier/ubuntu

« back to all changes in this revision

Viewing changes to src/hal.c

  • Committer: Michael Vogt
  • Date: 2009-07-07 18:45:47 UTC
  • Revision ID: michael.vogt@ubuntu.com-20090707184547-ss7fsph2y5m0ml2l
fix -Wall errors

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
      break;
128
128
   case RES_DIST_UPGRADER:
129
129
      argv[0] = "/usr/lib/update-notifier/cddistupgrader";
130
 
      argv[1] = mount_point;
 
130
      argv[1] = (gchar *)mount_point;
131
131
      argv[2] = NULL;
132
132
      g_spawn_async (NULL, argv, NULL, 0, NULL, NULL, NULL, NULL);
133
133
      break;
193
193
      return;
194
194
 
195
195
   // we only care about the first mount point
196
 
   gchar *p = gdu_device_get_mount_path (device);
 
196
   const gchar *p = gdu_device_get_mount_path (device);
197
197
   //g_print("checking mount point %s\n", p);
198
198
   up_check_mount_point_for_packages (p, data);
199
199
}
215
215
up_do_hal_init (UpgradeNotifier *un)
216
216
{
217
217
   GduPool *pool = gdu_pool_new ();
218
 
   g_signal_connect_after (pool, "device_changed", up_device_changed, un);
 
218
   g_signal_connect (pool, "device_changed", (GCallback)up_device_changed, un);
219
219
   // now check what devices we have
220
220
   up_check_mounted_devices(pool, un);
221
221