Whamcloud - gitweb
LU-1884 build: fix 'resource leak' errors
[fs/lustre-release.git] / lustre / tests / createtest.c
index 4406fea..7bdbc78 100644 (file)
@@ -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.
@@ -26,7 +24,7 @@
  * GPL HEADER END
  */
 /*
- * Copyright  2008 Sun Microsystems, Inc. All rights reserved
+ * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
  * Use is subject to license terms.
  */
 /*
@@ -96,8 +94,9 @@ int main(int argc, char *argv[])
                        if (i == S_IFCHR || i == S_IFBLK) {
                                if (st.st_rdev != 0x1234) {
                                        fprintf(stderr, "%s: ERROR rdev %s: "
-                                               "%lu != 0x1234",
-                                               argv[0], name, st.st_rdev);
+                                               "%llu != 0x1234",
+                                               argv[0], name,
+                                               (unsigned long long)st.st_rdev);
                                        exit(13);
                                }
                        }