Print this page
3792 hald.c:371: error: 'g_type_init' is deprecated
Reviewed by: Jon Tibble <meths@btinternet.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/hal/hald/hald.c
          +++ new/usr/src/cmd/hal/hald/hald.c
↓ open down ↓ 359 lines elided ↑ open up ↑
 360  360   */
 361  361  int
 362  362  main (int argc, char *argv[])
 363  363  {
 364  364          GMainLoop *loop;
 365  365          guint sigterm_iochn_listener_source_id;
 366  366          char *path;
 367  367          char newpath[512];
 368  368  
 369  369          openlog ("hald", LOG_PID, LOG_DAEMON);
 370      -
      370 +#if !defined(GLIB_VERSION_2_36)
 371  371          g_type_init ();
 372      -
      372 +#endif
 373  373          if (getenv ("HALD_VERBOSE"))
 374  374                  hald_is_verbose = TRUE;
 375  375          else
 376  376                  hald_is_verbose = FALSE;
 377  377  
 378  378          /* our helpers are installed into libexec, so adjust out $PATH
 379  379           * to include this at the end (since we want to overide in
 380  380           * run-hald.sh and friends)
 381  381           */
 382  382          path = getenv ("PATH");
↓ open down ↓ 259 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX