Whamcloud - gitweb
LU-8998 utils: allow "--component-*" to be abbreviated
[fs/lustre-release.git] / lustre / tests / statmany.c
index fa3a4d1..4f83434 100644 (file)
  *
  * You should have received a copy of the GNU General Public License
  * version 2 along with this program; If not, see
- * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
+ * http://www.gnu.org/licenses/gpl-2.0.html
  *
  * GPL HEADER END
  */
 #include <lustre_ioctl.h>
 
 struct option longopts[] = {
-       {"lookup", 0, 0, 'l'},
-       {"random", 0, 0, 'r'},
-       {"stat", 0, 0, 's'},
-       {NULL, 0, 0, 0},
+       { .name = "lookup", .has_arg = no_argument, .val = 'l' },
+       { .name = "random", .has_arg = no_argument, .val = 'r' },
+       { .name = "stat", .has_arg = no_argument, .val = 's' },
+       { .name = NULL }
 };
 char *shortopts = "hlr:s0123456789";