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

Diff of /trunk/src/fstabinfo.c

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

Revision 2733 Revision 2734
54 54
55 return (NULL); 55 return (NULL);
56} 56}
57#endif 57#endif
58 58
59#define getoptstring "f:m:o:p:h" 59#include "_usage.h"
60#define getoptstring "f:m:o:p:" getoptstring_COMMON
60static struct option longopts[] = { 61static struct option longopts[] = {
61 { "fstype", 1, NULL, 'f'}, 62 { "fstype", 1, NULL, 'f'},
62 { "mountcmd", 1, NULL, 'm'}, 63 { "mountcmd", 1, NULL, 'm'},
63 { "opts", 1, NULL, 'o'}, 64 { "opts", 1, NULL, 'o'},
64 { "passno", 1, NULL, 'p'}, 65 { "passno", 1, NULL, 'p'},
65 { "help", 0, NULL, 'h'}, 66 longopts_COMMON
66 { NULL, 0, NULL, 0} 67 { NULL, 0, NULL, 0}
67}; 68};
68#include "_usage.c" 69#include "_usage.c"
69 70
70int main (int argc, char **argv) 71int main (int argc, char **argv)
137 } 138 }
138 break; 139 break;
139 } 140 }
140 break; 141 break;
141 142
142 case 'h': 143 case_RC_COMMON_GETOPT
143 END_ENT;
144 usage (EXIT_SUCCESS);
145 default:
146 END_ENT;
147 usage (EXIT_FAILURE);
148 } 144 }
149 145
150 END_ENT; 146 END_ENT;
151 147
152 if (result != EXIT_SUCCESS) 148 if (result != EXIT_SUCCESS)

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

  ViewVC Help
Powered by ViewVC 1.1.20