Deleted Added
sdiff udiff text old ( 87866 ) new ( 88282 )
full compact
1#include <sys/param.h>
2#include <sys/time.h>
3#include <stdio.h>
4#include <string.h>
5#include <unistd.h>
6#include <stdlib.h>
7#ifdef APPLE
8#include <err.h>
9#include <sysexits.h>
10#endif
11
12#include <netsmb/smb_lib.h>
13#include <netsmb/smb_conn.h>
14
15#include "common.h"
16
17#define DEFBIT(bit) {bit, #bit}
18

--- 82 unchanged lines hidden (view full) ---

101
102int
103cmd_dumptree(int argc, char *argv[])
104{
105 void *p, *op;
106 int *itype;
107
108 printf("SMB connections:\n");
109#ifdef APPLE
110 if (loadsmbvfs())
111 errx(EX_OSERR, "SMB filesystem is not available");
112#endif
113 p = smb_dumptree();
114 if (p == NULL) {
115 printf("None\n");
116 return 0;
117 }
118 op = p;
119 for (;;) {
120 itype = p;

--- 22 unchanged lines hidden ---