FIXES 1280
make the tests work
#include <sys/select.h>
#include <sys/types.h>
#include <sys/socket.h>
-#include <bstring.h>
+#include <string.h>
#include <sys/time.h>
#include <netinet/in.h>
#include <netdb.h>
Usage();
}
+ if (writeSize == 0 && doEnd ==0 && putOOB == 0) {
+ printf("%s: Missing action.\n", program);
+ Usage();
+ }
+
if (!setFD) {
setFD = 31;
printf("%s: Using default socket of %d.\n", program, setFD);
#include <sys/select.h>
#include <sys/types.h>
#include <sys/socket.h>
-#include <bstring.h>
+#include <string.h>
#include <sys/time.h>
#include <netinet/in.h>
#include <netdb.h>
#include <sys/select.h>
#include <sys/types.h>
#include <sys/socket.h>
-#include <bstring.h>
+#include <string.h>
#include <sys/time.h>
#include <netinet/in.h>
#include <netdb.h>
{
va_list args;
struct timeval now;
+ struct timezone tz;
struct tm *ltime;
int code;
PROCESS pid;
extern char *program;
- code = gettimeofday(&now);
+ code = gettimeofday(&now,&tz);
assert (code == 0);
ltime = localtime((time_t*)&now.tv_sec);