Changeset 740 for vendor/current/source4/client/cifsdd.c
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source4/client/cifsdd.c
r414 r740 61 61 /* ------------------------------------------------------------------------- */ 62 62 63 static const struct { 64 enum argtype arg_type; 65 const char * arg_name; 66 } names [] = { 67 { ARG_NUMERIC, "COUNT" }, 68 { ARG_SIZE, "SIZE" }, 69 { ARG_PATHNAME, "FILE" }, 70 { ARG_BOOL, "BOOLEAN" }, 71 }; 72 63 73 static const char * argtype_str(enum argtype arg_type) 64 74 { 65 static const struct {66 enum argtype arg_type;67 const char * arg_name;68 } names [] =69 {70 { ARG_NUMERIC, "COUNT" },71 { ARG_SIZE, "SIZE" },72 { ARG_PATHNAME, "FILE" },73 { ARG_BOOL, "BOOLEAN" },74 };75 76 75 int i; 77 76 … … 361 360 const char *socket_options, 362 361 struct smbcli_session_options *smb_session_options, 363 struct smb_iconv_convenience *iconv_convenience,364 362 struct gensec_settings *gensec_settings) 365 363 { … … 386 384 socket_options, 387 385 smb_options, smb_session_options, 388 iconv_convenience,389 386 gensec_settings); 390 387 } else if (strcmp(which, "of") == 0) { … … 395 392 socket_options, 396 393 smb_options, smb_session_options, 397 iconv_convenience,398 394 gensec_settings); 399 395 } else { … … 429 425 count = check_arg_numeric("count"); 430 426 431 lp _smbcli_options(lp_ctx, &options);432 lp _smbcli_session_options(lp_ctx, &session_options);427 lpcfg_smbcli_options(lp_ctx, &options); 428 lpcfg_smbcli_session_options(lp_ctx, &session_options); 433 429 434 430 /* Allocate IO buffer. We need more than the max IO size because we … … 448 444 (unsigned long long)iomax, options.max_xmit)); 449 445 450 if (!(ifile = open_file(lp _resolve_context(lp_ctx), ev, "if",451 lp _smb_ports(lp_ctx), &options,452 lp _socket_options(lp_ctx),453 &session_options, lp_iconv_convenience(lp_ctx),454 lp _gensec_settings(lp_ctx, lp_ctx)))) {446 if (!(ifile = open_file(lpcfg_resolve_context(lp_ctx), ev, "if", 447 lpcfg_smb_ports(lp_ctx), &options, 448 lpcfg_socket_options(lp_ctx), 449 &session_options, 450 lpcfg_gensec_settings(lp_ctx, lp_ctx)))) { 455 451 return(FILESYS_EXIT_CODE); 456 452 } 457 453 458 if (!(ofile = open_file(lp _resolve_context(lp_ctx), ev, "of",459 lp _smb_ports(lp_ctx), &options,460 lp _socket_options(lp_ctx),454 if (!(ofile = open_file(lpcfg_resolve_context(lp_ctx), ev, "of", 455 lpcfg_smb_ports(lp_ctx), &options, 456 lpcfg_socket_options(lp_ctx), 461 457 &session_options, 462 lp_iconv_convenience(lp_ctx), 463 lp_gensec_settings(lp_ctx, lp_ctx)))) { 458 lpcfg_gensec_settings(lp_ctx, lp_ctx)))) { 464 459 return(FILESYS_EXIT_CODE); 465 460 }
Note:
See TracChangeset
for help on using the changeset viewer.