Apply patch: ncpfs-hg-commit-431.patch
This commit is contained in:
@@ -62,6 +62,7 @@ typedef u_int32_t Time_T;
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <wchar.h>
|
||||
|
||||
@@ -254,7 +255,7 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
#ifndef N_PLAT_MSW4
|
||||
{
|
||||
static const u_int32_t add[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
|
||||
static const NET_ADDRESS_TYPE add[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
|
||||
dserr = NWDSSetTransport(ctx, 16, add);
|
||||
if (dserr) {
|
||||
fprintf(stderr, "NWDSSetTransport failed: %s\n",
|
||||
|
||||
@@ -85,6 +85,7 @@ typedef u_int32_t Time_T;
|
||||
#include <ncp/nwclient.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <wchar.h>
|
||||
|
||||
@@ -151,7 +152,7 @@ int main(int argc, char *argv[]) {
|
||||
nuint32 ih = NO_MORE_ITERATIONS;
|
||||
Buf_T* buf;
|
||||
size_t size = DEFAULT_MESSAGE_LEN;
|
||||
size_t cnt;
|
||||
size_t ccnt;
|
||||
|
||||
char treeName [MAX_TREE_NAME_CHARS +1]="";
|
||||
char serverName [MAX_SCHEMA_NAME_CHARS+1]="";
|
||||
@@ -263,7 +264,7 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
#ifndef N_PLAT_MSW4
|
||||
{
|
||||
static const u_int32_t add[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
|
||||
static const NET_ADDRESS_TYPE add[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
|
||||
dserr = NWDSSetTransport(ctx, 16, add);
|
||||
if (dserr) {
|
||||
fprintf(stderr, "NWDSSetTransport failed: %s\n",
|
||||
@@ -345,7 +346,7 @@ int main(int argc, char *argv[]) {
|
||||
case 0:dserr = NWDSList(ctx, objectname, &ih, buf); break;
|
||||
case 1:dserr = NWDSListContainers(ctx, objectname, &ih, buf); break;
|
||||
case 2:dserr = NWDSListByClassAndName(ctx, objectname, classname, subjectname, &ih, buf); break;
|
||||
case 3:dserr = NWDSGetCountByClassAndName(ctx, objectname, classname, subjectname, &cnt); break;
|
||||
case 3:dserr = NWDSGetCountByClassAndName(ctx, objectname, classname, subjectname, &ccnt); break;
|
||||
case 4:dserr = NWDSExtSyncList(ctx, objectname,
|
||||
classname, subjectname, &ih, &ts,
|
||||
0, buf);
|
||||
@@ -413,7 +414,7 @@ int main(int argc, char *argv[]) {
|
||||
#endif
|
||||
} else {
|
||||
if (!quiet)
|
||||
printf("%u objects found\n", cnt);
|
||||
printf("%u objects found\n", ccnt);
|
||||
}
|
||||
} while ((dserr == 0) && (ih != NO_MORE_ITERATIONS));
|
||||
NWCCCloseConn(conn);
|
||||
|
||||
@@ -204,7 +204,7 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
#ifndef N_PLAT_MSW4
|
||||
{
|
||||
static const u_int32_t add[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
|
||||
static const NET_ADDRESS_TYPE add[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
|
||||
dserr = NWDSSetTransport(ctx, 16, add);
|
||||
if (dserr) {
|
||||
fprintf(stderr, "NWDSSetTransport failed: %s\n",
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
|
||||
static char *progname;
|
||||
|
||||
static void
|
||||
static void __attribute__((noreturn))
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr, _("usage: %s [options] \n"), progname);
|
||||
@@ -197,7 +197,7 @@ static int doPrintOut (NWDSContextHandle ctx, const void * name, const enum SYNT
|
||||
}
|
||||
break;
|
||||
case SYN_PO_ADDRESS:{
|
||||
const NWDSChar** pa = (const NWDSChar**)name;
|
||||
const NWDSChar*const* pa = (const NWDSChar*const*)name;
|
||||
printf("%s:%s:%s:%s:%s:%s\n",pa[0],pa[1],pa[2],pa[3],pa[4],pa[5]);
|
||||
}
|
||||
break;
|
||||
@@ -442,7 +442,7 @@ main(int argc, char *argv[])
|
||||
|
||||
#ifndef N_PLAT_MSW4
|
||||
{
|
||||
static const u_int32_t add[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
|
||||
static const NET_ADDRESS_TYPE add[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
|
||||
dserr = NWDSSetTransport(ctx, 16, add);
|
||||
if (dserr) {
|
||||
fprintf(stderr, "NWDSSetTransport failed: %s\n",
|
||||
|
||||
@@ -67,7 +67,7 @@ Ppollet:0 CN=FCPC2_APPS home\ppollet:1 2 3 4 5 6:Patrick Pollet:9999
|
||||
|
||||
static char *progname;
|
||||
|
||||
static void
|
||||
static void __attribute__((noreturn))
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr, _("usage: %s [options] \n"), progname);
|
||||
@@ -191,7 +191,7 @@ static int doPrintOut (NWDSContextHandle ctx, const void * name, const enum SYNT
|
||||
}
|
||||
break;
|
||||
case SYN_PO_ADDRESS:{
|
||||
const NWDSChar** pa = (const NWDSChar**)name;
|
||||
const NWDSChar*const* pa = (const NWDSChar*const*)name;
|
||||
printf("%s%c%s%c%s%c%s%c%s%c%s",pa[0],sep,pa[1],sep,pa[2],sep,pa[3],sep,pa[4],sep,pa[5]);
|
||||
}
|
||||
break;
|
||||
@@ -479,7 +479,7 @@ main(int argc, char *argv[])
|
||||
|
||||
#ifndef N_PLAT_MSW4
|
||||
{
|
||||
static const u_int32_t add[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
|
||||
static const NET_ADDRESS_TYPE add[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
|
||||
dserr = NWDSSetTransport(ctx, 16, add);
|
||||
if (dserr) {
|
||||
fprintf(stderr, "NWDSSetTransport failed: %s\n",
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <wchar.h>
|
||||
|
||||
@@ -148,7 +149,7 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
{
|
||||
|
||||
int optv=-1;
|
||||
NWVOL_NUM optv;
|
||||
nuint32 nwuid,rest,inUse;
|
||||
struct ncp_volume_info target;
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ static const char * gDefaultFields ="TSVUX";
|
||||
static const char * gUserFields=NULL;
|
||||
|
||||
|
||||
static void
|
||||
static void __attribute__((noreturn))
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr, _("failed. usage: %s [-options] \n"), progname);
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
|
||||
static char *progname;
|
||||
|
||||
static void
|
||||
static void __attribute__((noreturn))
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr, _("failed. usage: %s [options] servername\n"), progname);
|
||||
|
||||
Reference in New Issue
Block a user