/[baselayout]/trunk/src/rc.c
Gentoo

Diff of /trunk/src/rc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2977 Revision 2978
360 360
361 if (argc < 1 || ! argv[0] || strlen (argv[0]) == 0) 361 if (argc < 1 || ! argv[0] || strlen (argv[0]) == 0)
362 eerrorx ("%s: no option specified", applet); 362 eerrorx ("%s: no option specified", applet);
363 363
364 if (strcmp (applet, "get_options") == 0) { 364 if (strcmp (applet, "get_options") == 0) {
365 char *option = rc_service_option_get (service, argv[0]); 365 char *option = rc_service_value_get (service, argv[0]);
366 if (option) { 366 if (option) {
367 printf ("%s", option); 367 printf ("%s", option);
368 free (option); 368 free (option);
369 ok = true; 369 ok = true;
370 } 370 }
371 } else if (strcmp (applet, "save_options") == 0) 371 } else if (strcmp (applet, "save_options") == 0)
372 ok = rc_service_option_set (service, argv[0], argv[1]); 372 ok = rc_service_value_set (service, argv[0], argv[1]);
373 else 373 else
374 eerrorx ("%s: unknown applet", applet); 374 eerrorx ("%s: unknown applet", applet);
375 375
376 return (ok ? EXIT_SUCCESS : EXIT_FAILURE); 376 return (ok ? EXIT_SUCCESS : EXIT_FAILURE);
377} 377}

Legend:
Removed from v.2977  
changed lines
  Added in v.2978

  ViewVC Help
Powered by ViewVC 1.1.20