#include <string.h>
#include <unistd.h>
#include <assert.h>
-#include <net.h>
-#include <iplib.h>
+#include <parlib/net.h>
+#include <iplib/iplib.h>
#include <sys/types.h>
#include <sys/stat.h>
dialstring = argv[1];
srvname = argv[2];
- dfd = dial(dialstring, 0, 0, 0);
+ dfd = dial9(dialstring, 0, 0, 0, 0);
if (dfd < 0) {
perror("Unable to dial!");
exit(-1);
}
- ret = snprintf(buf, buf_len, "#s/%s", srvname);
- if (snprintf_overflow(ret, buf, buf_len)) {
+ ret = snprintf(buf, buf_len, "#srv/%s", srvname);
+ if (snprintf_error(ret, buf_len)) {
printf("srvname too long\n");
exit(-1);
}