? src/consumers/tspfs/CMakeFiles
? src/consumers/tspfs/Makefile
? src/consumers/tspfs/cmake_install.cmake
cvs diff: Diffing src/consumers/tspfs
Index: src/consumers/tspfs/tspfs.c
===================================================================
RCS file: /sources/tsp/tsp/src/consumers/tspfs/tspfs.c,v
retrieving revision 1.16
diff -u -r1.16 tspfs.c
--- src/consumers/tspfs/tspfs.c	1 Apr 2008 09:30:20 -0000	1.16
+++ src/consumers/tspfs/tspfs.c	25 Jun 2008 12:08:02 -0000
@@ -94,9 +94,13 @@
 #include <assert.h>
 #include <stddef.h>
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <getopt.h>
+#ifndef __USE_GNU
 #define __USE_GNU
+#endif
 #include <search.h>
 
 #include <tspfs.h>
@@ -209,7 +213,7 @@
 }
 
 
-static int get_tsp_symbol_index(const char *symbol_name)
+static long get_tsp_symbol_index(const char *symbol_name)
 {
 	int ret;
 	ENTRY e;
@@ -218,7 +222,7 @@
 	e.key = (char *)symbol_name;
 	ret = hsearch_r(e, FIND, &ep, &tspfs.name_to_index);
 	if (ret)
-		return (int)ep->data;
+		return (long)ep->data;
 
 	return -1;
 }
@@ -260,7 +264,7 @@
 static int tspfs_init_connect(int argc, char **argv, char *url)
 {
 
-	int i;
+	long i;
 
 	if (TSP_STATUS_OK!=TSP_consumer_init(&argc, &argv)) {
 	  printf("TSP Initialization failed\n");
@@ -455,7 +459,7 @@
 	double value;
 	struct tspfs_sample s;
 	char *sym_name;
-	int idx;
+	long idx;
 
 	sym_name = get_symname_from_path(path);
 	if (!sym_name)
@@ -482,7 +486,7 @@
 		      off_t offset, struct fuse_file_info *fi)
 {
 	size_t len;
-	int idx;
+	long idx;
 	struct tspfs_sample *sample;
 	char *sym_name;
 	char sym_display[MAX_SYM_DISP_SIZE];
@@ -502,7 +506,7 @@
 		char *format;
 		format = "";
 #ifdef TSPFS_DEBUG
-		fprintf(stderr,"AZE:Symbol is : %s type: %d pgi: %d, idx: %d\n", sym_name, sample->sync.type, sample->sync.provider_global_index, idx);
+		fprintf(stderr,"Symbol is : %s type: %d pgi: %d, idx: %ld\n", sym_name, sample->sync.type, sample->sync.provider_global_index, idx);
 #endif
 		switch (sample->sync.type) {
 			case TSP_TYPE_DOUBLE:
@@ -527,7 +531,7 @@
 				break;
 			case TSP_TYPE_INT64:
 				sprintf(sym_display, "t=%d v=%lld %%lld\n", sample->sync.time,
-					sample->sync.uvalue.int64_value);
+					(long long)sample->sync.uvalue.int64_value);
 				break;
 			case TSP_TYPE_UINT8:
 				sprintf(sym_display, "t=%d v=%u %%u\n", sample->sync.time,
@@ -543,7 +547,7 @@
 				break;
 			case TSP_TYPE_UINT64:
 				sprintf(sym_display, "t=%d v=%llu %%llu\n", sample->sync.time,
-					sample->sync.uvalue.uint64_value);
+					(unsigned long long)sample->sync.uvalue.uint64_value);
 				break;
 			case TSP_TYPE_CHAR:
 				sprintf(sym_display, "t=%d v=%c %%c\n", sample->sync.time,
Index: src/consumers/tspfs/tspfs.h
===================================================================
RCS file: /sources/tsp/tsp/src/consumers/tspfs/tspfs.h,v
retrieving revision 1.1
diff -u -r1.1 tspfs.h
--- src/consumers/tspfs/tspfs.h	25 Mar 2007 21:32:29 -0000	1.1
+++ src/consumers/tspfs/tspfs.h	25 Jun 2008 12:08:02 -0000
@@ -5,7 +5,6 @@
 #include <tsp_prjcfg.h>
 #include <tsp_consumer.h>
 
-#define __USE_GNU
 #include <search.h>
 
 #define MAX_SYM_DISP_SIZE 512
