*/
#define __USE_FILE_OFFSET64
-#define _GNU_SOURCE
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
#include <stdio.h>
#ifdef HAVE_NETDB_H
"pinger", "filter", "", "echo",
"ldlm", "lov", "", "",
"", "", "", "lmv",
- "", "sec", "gss", "",
+ "", "sec", "gss", "",
"mgc", "mgs", "fid", "fld", NULL};
static const char *libcfs_debug_masks[] =
{"trace", "inode", "super", "ext2",
*linevp = linev;
*lenp = nlen;
}
- linev[used] = line;
+ linev[used] = line;
return 1;
}
line->text = p;
if (!add_rec(line, &linev, &linev_len, kept)) {
- fprintf(stderr, "malloc failed; printing accumulated "
+ fprintf(stderr, "malloc failed; printing accumulated "
"records and exiting.\n");
break;
- }
+ }
kept++;
}
strcpy(filename, argv[1]);
else
sprintf(filename, "/tmp/lustre-log."CFS_TIME_T".%u",
- time(NULL),getpid());
+ time(NULL),getpid());
if (stat(filename, &st) == 0 && S_ISREG(st.st_mode))
unlink(filename);