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

Diff of /trunk/src/runscript.c

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

Revision 2669 Revision 2698
970 int i; 970 int i;
971 bool deps = true; 971 bool deps = true;
972 bool doneone = false; 972 bool doneone = false;
973 char pid[16]; 973 char pid[16];
974 int retval; 974 int retval;
975 char c; 975 int opt;
976 976
977 service = argv[1]; 977 service = argv[1];
978 /* Show help if insufficient args */ 978 /* Show help if insufficient args */
979 if (argc < 3) { 979 if (argc < 3) {
980 execl (RCSCRIPT_HELP, RCSCRIPT_HELP, service, (char *) NULL); 980 execl (RCSCRIPT_HELP, RCSCRIPT_HELP, service, (char *) NULL);
1077 /* Punt the first arg as it's our service name */ 1077 /* Punt the first arg as it's our service name */
1078 argc--; 1078 argc--;
1079 argv++; 1079 argv++;
1080 1080
1081 /* Right then, parse any options there may be */ 1081 /* Right then, parse any options there may be */
1082 while ((c = getopt_long (argc, argv, getoptstring, 1082 while ((opt = getopt_long (argc, argv, getoptstring,
1083 longopts, (int *) 0)) != -1) 1083 longopts, (int *) 0)) != -1)
1084 switch (c) { 1084 switch (opt) {
1085 case 'd': 1085 case 'd':
1086 setenv ("RC_DEBUG", "yes", 1); 1086 setenv ("RC_DEBUG", "yes", 1);
1087 break; 1087 break;
1088 case 'h': 1088 case 'h':
1089 execl (RCSCRIPT_HELP, RCSCRIPT_HELP, service, (char *) NULL); 1089 execl (RCSCRIPT_HELP, RCSCRIPT_HELP, service, (char *) NULL);

Legend:
Removed from v.2669  
changed lines
  Added in v.2698

  ViewVC Help
Powered by ViewVC 1.1.20