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

Diff of /trunk/src/mountinfo.c

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

Revision 2580 Revision 2581
34{ 34{
35 struct statfs *mnts; 35 struct statfs *mnts;
36 int nmnts; 36 int nmnts;
37 int i; 37 int i;
38 char **list = NULL; 38 char **list = NULL;
39 char c;
40 39
41 if ((nmnts = getmntinfo (&mnts, MNT_NOWAIT)) == 0) 40 if ((nmnts = getmntinfo (&mnts, MNT_NOWAIT)) == 0)
42 eerrorx ("getmntinfo: %s", strerror (errno)); 41 eerrorx ("getmntinfo: %s", strerror (errno));
43 42
44 for (i = 0; i < nmnts; i++) { 43 for (i = 0; i < nmnts; i++) {
153 { "node", 0, NULL, 'n'}, 152 { "node", 0, NULL, 'n'},
154 { "reverse", 0, NULL, 'r'}, 153 { "reverse", 0, NULL, 'r'},
155 { NULL, 0, NULL, 0} 154 { NULL, 0, NULL, 0}
156 }; 155 };
157 156
158 while ((c = getopt_long (argc, argv, "F:N:S;fnr", 157 while ((c = getopt_long (argc, argv, "F:N:S:fnr",
159 longopts, (int *) 0)) != -1) 158 longopts, (int *) 0)) != -1)
160 switch (c) { 159 switch (c) {
161 case 'F': 160 case 'F':
162 if (fstype_regex) 161 if (fstype_regex)
163 free (fstype_regex); 162 free (fstype_regex);
180 regerror (result, node_regex, buffer, sizeof (buffer)); 179 regerror (result, node_regex, buffer, sizeof (buffer));
181 eerrorx ("%s: invalid regex `%s'", argv[0], buffer); 180 eerrorx ("%s: invalid regex `%s'", argv[0], buffer);
182 } 181 }
183 break; 182 break;
184 183
185 case 'R': 184 case 'S':
186 if (skip_regex) 185 if (skip_regex)
187 free (skip_regex); 186 free (skip_regex);
188 skip_regex = rc_xmalloc (sizeof (regex_t)); 187 skip_regex = rc_xmalloc (sizeof (regex_t));
189 if ((result = regcomp (skip_regex, optarg, 188 if ((result = regcomp (skip_regex, optarg,
190 REG_EXTENDED | REG_NOSUB)) != 0) 189 REG_EXTENDED | REG_NOSUB)) != 0)

Legend:
Removed from v.2580  
changed lines
  Added in v.2581

  ViewVC Help
Powered by ViewVC 1.1.20