From: Michael Vrable Date: Fri, 23 Apr 2010 20:30:25 +0000 (-0700) Subject: Code fixes for TBBT. X-Git-Url: https://git.vrable.net/?a=commitdiff_plain;h=903857d986d57c2bfd6b60ff2181fb07f125e87e;p=bluesky.git Code fixes for TBBT. --- diff --git a/TBBT/.gitignore b/TBBT/.gitignore new file mode 100644 index 0000000..1a55993 --- /dev/null +++ b/TBBT/.gitignore @@ -0,0 +1,3 @@ +*.o +trace_play/rpc/librpclib.a +trace_play/sfs3 diff --git a/TBBT/trace_play/generic_hash.c b/TBBT/trace_play/generic_hash.c index 1d73a34..e90bf66 100644 --- a/TBBT/trace_play/generic_hash.c +++ b/TBBT/trace_play/generic_hash.c @@ -9,6 +9,8 @@ */ #include +#include +#include #include "generic_hash.h" /* create an entry for a block */ diff --git a/TBBT/trace_play/profile.c b/TBBT/trace_play/profile.c index 23548c1..9dc4847 100755 --- a/TBBT/trace_play/profile.c +++ b/TBBT/trace_play/profile.c @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include "profile.h" #include "rfs_assert.h" //#include "rfs_c_def.h" diff --git a/TBBT/trace_play/rpc/sfs_cudp.c b/TBBT/trace_play/rpc/sfs_cudp.c index 1dee989..6911419 100755 --- a/TBBT/trace_play/rpc/sfs_cudp.c +++ b/TBBT/trace_play/rpc/sfs_cudp.c @@ -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, diff --git a/TBBT/trace_play/sem.c b/TBBT/trace_play/sem.c index 3079f9b..b2773be 100644 --- a/TBBT/trace_play/sem.c +++ b/TBBT/trace_play/sem.c @@ -2,6 +2,9 @@ #include #include #include +#include +#include +#include extern int errno; diff --git a/TBBT/trace_play/sfs_c_chd.3thread.c b/TBBT/trace_play/sfs_c_chd.3thread.c index 195beb0..608310e 100644 --- a/TBBT/trace_play/sfs_c_chd.3thread.c +++ b/TBBT/trace_play/sfs_c_chd.3thread.c @@ -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);