generic/60[78]: ensure the initial DAX file flag state before test
[xfstests-dev.git] / dmapi / src / simple / dm_query_session.c
index cde754a38cb4b3c5adc329d4dd35d637711d1da4..795418f04f039350bc5ccbe8ed25eaac8593708d 100644 (file)
@@ -1,19 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (c) 2000-2001 Silicon Graphics, Inc.
  * All Rights Reserved.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it would be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write the Free Software Foundation,
- * Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 #include <stdlib.h>
 #include <stdio.h>
@@ -22,9 +10,6 @@
 #ifdef linux
 #include <dmapi.h>
 #endif
-#ifdef __sgi
-#include <sys/dmi.h>
-#endif
 
 int
 main( int argc, char **argv )
@@ -67,7 +52,7 @@ main( int argc, char **argv )
 
        ret = dm_query_session( sid, buflen, sessinfo, &rlen );
        printf( "ret=%d\n", ret );
-       printf( "rlen=%d\n", rlen );
+       printf( "rlen=%zd\n", rlen );
        if( ret != -1 )
                printf( "sessinfo=%s\n", sessinfo );
        exit(0);