Code fixes for TBBT.
authorMichael Vrable <mvrable@cs.ucsd.edu>
Fri, 23 Apr 2010 20:30:25 +0000 (13:30 -0700)
committerMichael Vrable <mvrable@cs.ucsd.edu>
Fri, 23 Apr 2010 20:30:25 +0000 (13:30 -0700)
TBBT/.gitignore [new file with mode: 0644]
TBBT/trace_play/generic_hash.c
TBBT/trace_play/profile.c
TBBT/trace_play/rpc/sfs_cudp.c
TBBT/trace_play/sem.c
TBBT/trace_play/sfs_c_chd.3thread.c

diff --git a/TBBT/.gitignore b/TBBT/.gitignore
new file mode 100644 (file)
index 0000000..1a55993
--- /dev/null
@@ -0,0 +1,3 @@
+*.o
+trace_play/rpc/librpclib.a
+trace_play/sfs3
index 1d73a34..e90bf66 100644 (file)
@@ -9,6 +9,8 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include "generic_hash.h"
 
 /* create an entry for a block */
index 23548c1..9dc4847 100755 (executable)
@@ -13,6 +13,8 @@
 #include <sys/sem.h>
 #include <unistd.h>
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include "profile.h"
 #include "rfs_assert.h"
 //#include "rfs_c_def.h"
index 1dee989..6911419 100755 (executable)
@@ -84,6 +84,11 @@ static void          sfs_cudp_destroy(CLIENT *);
 static bool_t           sfs_cudp_getreply(CLIENT *, xdrproc_t, void *,
                                int, uint32_t *, uint32_t *, struct timeval *);
 static int              sfs_cudp_poll(CLIENT *, uint32_t);
+static enum clnt_stat
+get_areply(
+        CLIENT *cl,
+        uint32_t *xid,
+       struct timeval *timeout);
 
 static struct clnt_ops sfs_cudp_ops = {
        sfs_cudp_call,
index 3079f9b..b2773be 100644 (file)
@@ -2,6 +2,9 @@
 #include <sys/types.h>
 #include <errno.h>
 #include <unistd.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 
 extern int errno;
 
index 195beb0..608310e 100644 (file)
@@ -690,7 +690,7 @@ void inline format_line (char * line_before, char * line)
                }
                p = strstr (pv, "fh");
        }
-       while ((*pv)!=NULL) {
+       while ((*pv)!='\0') {
                *pl++ = *pv++;
        }
        //printf("format_line after %s\n", line);