X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Ftchmod.c;h=e266584e567317a74cb898576f75a2bf8b88b537;hb=489afbe69d5b7a867e44f6c2364513e660cf862b;hp=fe1896dc83a2850f1d68c15b649bf6011c843d08;hpb=70e80ade90af09300396706b8910e196a7928520;p=fs%2Flustre-release.git diff --git a/lustre/tests/tchmod.c b/lustre/tests/tchmod.c index fe1896d..e266584 100644 --- a/lustre/tests/tchmod.c +++ b/lustre/tests/tchmod.c @@ -1,6 +1,4 @@ -/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*- - * vim:expandtab:shiftwidth=8:tabstop=8: - * +/* * GPL HEADER START * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -16,17 +14,13 @@ * in the LICENSE file that accompanied this code). * * You should have received a copy of the GNU General Public License - * version 2 along with this program; If not, see [sun.com URL with a - * copy of GPLv2]. - * - * 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. + * version 2 along with this program; If not, see + * http://www.gnu.org/licenses/gpl-2.0.html * * GPL HEADER END */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved + * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. */ /* @@ -42,13 +36,13 @@ int main(int argc, char **argv) { - mode_t mode; + mode_t mode; - if (argc != 3) { - printf("usage: %s mode name\n", argv[0]); - return 1; - } + if (argc != 3) { + printf("usage: %s mode name\n", argv[0]); + return 1; + } - mode = strtoul(argv[1], NULL, 8); - return chmod(argv[2], mode) ? errno : 0; + mode = strtoul(argv[1], NULL, 8); + return chmod(argv[2], mode) ? errno : 0; }