src/server/safs/init.c

changeset 140
93247a579184
parent 92
382bff43c6eb
child 161
aadda87bad1b
equal deleted inserted replaced
139:29ac9aed4889 140:93247a579184
90 fprintf(stderr, "Cannot load symbol %s\n", funcs); 90 fprintf(stderr, "Cannot load symbol %s\n", funcs);
91 dlclose(lib); 91 dlclose(lib);
92 return REQ_ABORTED; 92 return REQ_ABORTED;
93 } 93 }
94 struct FuncStruct fc; 94 struct FuncStruct fc;
95 ZERO(&fc, sizeof(struct FuncStruct));
95 fc.func = (FuncPtr)sym; 96 fc.func = (FuncPtr)sym;
96 fc.name = sstrdup(sstr(funcs)).ptr; 97 fc.name = sstrdup(sstr(funcs)).ptr;
97 add_function(&fc); 98 add_function(&fc);
98 99
99 if(b) { 100 if(b) {

mercurial