/[baselayout]/trunk/src/env-update.c
Gentoo

Diff of /trunk/src/env-update.c

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

Revision 2733 Revision 2734
59 NULL, 59 NULL,
60}; 60};
61 61
62static char *applet = NULL; 62static char *applet = NULL;
63 63
64#define getoptstring "hL" 64#include "_usage.h"
65#define getoptstring "L" getoptstring_COMMON
65static struct option longopts[] = { 66static struct option longopts[] = {
66 { "help", 0, NULL, 'h'},
67 { "no-ldconfig", 0, NULL, 'L'}, 67 { "no-ldconfig", 0, NULL, 'L'},
68 longopts_COMMON
68 { NULL, 0, NULL, 0} 69 { NULL, 0, NULL, 0}
69}; 70};
70#include "_usage.c" 71#include "_usage.c"
71 72
72int main (int argc, char **argv) 73int main (int argc, char **argv)
96 { 97 {
97 switch (opt) { 98 switch (opt) {
98 case 'L': 99 case 'L':
99 ldconfig = false; 100 ldconfig = false;
100 break; 101 break;
101 case 'h': 102
102 usage (EXIT_SUCCESS); 103 case_RC_COMMON_GETOPT
103 default:
104 usage (EXIT_FAILURE);
105 }
106 } 104 }
105 }
106
107 if (! files) 107 if (! files)
108 eerrorx ("%s: no files in " ENVDIR " to process", applet); 108 eerrorx ("%s: no files in " ENVDIR " to process", applet);
109 109
110 STRLIST_FOREACH (files, file, i) { 110 STRLIST_FOREACH (files, file, i) {
111 char *path = rc_strcatpaths (ENVDIR, file, (char *) NULL); 111 char *path = rc_strcatpaths (ENVDIR, file, (char *) NULL);

Legend:
Removed from v.2733  
changed lines
  Added in v.2734

  ViewVC Help
Powered by ViewVC 1.1.20