Changeset 745 for trunk/server/source3/libsmb/clirap2.c
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/source3/libsmb/clirap2.c
r599 r745 77 77 78 78 #include "includes.h" 79 #include "libsmb/libsmb.h" 80 #include "../librpc/gen_ndr/rap.h" 81 #include "../librpc/gen_ndr/svcctl.h" 82 #include "libsmb/clirap.h" 79 83 80 84 #define WORDSIZE 2 … … 285 289 ****************************************************************************/ 286 290 287 int cli_NetGroupAdd(struct cli_state *cli, RAP_GROUP_INFO_1 *grinfo)291 int cli_NetGroupAdd(struct cli_state *cli, struct rap_group_info_1 *grinfo) 288 292 { 289 293 char *rparam = NULL; … … 321 325 322 326 p = data; 323 PUTSTRINGF(p, grinfo->group_name, RAP_GROUPNAME_LEN);327 PUTSTRINGF(p, (const char *)grinfo->group_name, RAP_GROUPNAME_LEN); 324 328 PUTBYTE(p, 0); /* pad byte 0 */ 325 329 PUTSTRINGP(p, grinfo->comment, data, soffset); … … 831 835 ****************************************************************************/ 832 836 833 int cli_NetUserAdd(struct cli_state *cli, RAP_USER_INFO_1 * userinfo )837 int cli_NetUserAdd(struct cli_state *cli, struct rap_user_info_1 * userinfo ) 834 838 { 835 839 char *rparam = NULL; … … 864 868 PUTWORD(p, 0); /* pwencrypt */ 865 869 if(userinfo->passwrd) 866 PUTWORD(p,MIN(strlen( userinfo->passwrd), RAP_UPASSWD_LEN));870 PUTWORD(p,MIN(strlen((const char *)userinfo->passwrd), RAP_UPASSWD_LEN)); 867 871 else 868 872 PUTWORD(p, 0); /* password length */ … … 871 875 memset(data, '\0', soffset); 872 876 873 PUTSTRINGF(p, userinfo->user_name, RAP_USERNAME_LEN);877 PUTSTRINGF(p, (const char *)userinfo->user_name, RAP_USERNAME_LEN); 874 878 PUTBYTE(p, 0); /* pad byte 0 */ 875 PUTSTRINGF(p, userinfo->passwrd, RAP_UPASSWD_LEN);879 PUTSTRINGF(p, (const char *)userinfo->passwrd, RAP_UPASSWD_LEN); 876 880 PUTDWORD(p, 0); /* pw age - n.a. on user add */ 877 881 PUTWORD(p, userinfo->priv); … … 1334 1338 ****************************************************************************/ 1335 1339 1336 int cli_NetShareAdd(struct cli_state *cli, RAP_SHARE_INFO_2 * sinfo )1340 int cli_NetShareAdd(struct cli_state *cli, struct rap_share_info_2 * sinfo ) 1337 1341 { 1338 1342 char *rparam = NULL; … … 1366 1370 1367 1371 p = data; 1368 PUTSTRINGF(p, sinfo->share_name, RAP_SHARENAME_LEN);1372 PUTSTRINGF(p, (const char *)sinfo->share_name, RAP_SHARENAME_LEN); 1369 1373 PUTBYTE(p, 0); /* pad byte 0 */ 1370 1374 … … 1375 1379 PUTWORD(p, sinfo->active_users); 1376 1380 PUTSTRINGP(p, sinfo->path, data, soffset); 1377 PUTSTRINGF(p, sinfo->password, RAP_SPASSWD_LEN);1381 PUTSTRINGF(p, (const char *)sinfo->password, RAP_SPASSWD_LEN); 1378 1382 SCVAL(p,-1,0x0A); /* required 0x0A at end of password */ 1379 1383 … … 1900 1904 int cli_NetPrintQEnum(struct cli_state *cli, 1901 1905 void (*qfn)(const char*,uint16,uint16,uint16,const char*,const char*,const char*,const char*,const char*,uint16,uint16), 1902 void (*jfn)(uint16,const char*,const char*,const char*,const char*,uint16,uint16,const char*,u int_t,uint_t,const char*))1906 void (*jfn)(uint16,const char*,const char*,const char*,const char*,uint16,uint16,const char*,unsigned int,unsigned int,const char*)) 1903 1907 { 1904 1908 char param[WORDSIZE /* api number */ … … 2076 2080 int cli_NetPrintQGetInfo(struct cli_state *cli, const char *printer, 2077 2081 void (*qfn)(const char*,uint16,uint16,uint16,const char*,const char*,const char*,const char*,const char*,uint16,uint16), 2078 void (*jfn)(uint16,const char*,const char*,const char*,const char*,uint16,uint16,const char*,u int_t,uint_t,const char*))2082 void (*jfn)(uint16,const char*,const char*,const char*,const char*,uint16,uint16,const char*,unsigned int,unsigned int,const char*)) 2079 2083 { 2080 2084 char param[WORDSIZE /* api number */ … … 2336 2340 ****************************************************************************/ 2337 2341 2338 int cli_NetSessionEnum(struct cli_state *cli, void (*fn)(char *, char *, uint16, uint16, uint16, u int_t, uint_t, uint_t, char *))2342 int cli_NetSessionEnum(struct cli_state *cli, void (*fn)(char *, char *, uint16, uint16, uint16, unsigned int, unsigned int, unsigned int, char *)) 2339 2343 { 2340 2344 char param[WORDSIZE /* api number */ … … 2436 2440 2437 2441 int cli_NetSessionGetInfo(struct cli_state *cli, const char *workstation, 2438 void (*fn)(const char *, const char *, uint16, uint16, uint16, u int_t, uint_t, uint_t, const char *))2442 void (*fn)(const char *, const char *, uint16, uint16, uint16, unsigned int, unsigned int, unsigned int, const char *)) 2439 2443 { 2440 2444 char param[WORDSIZE /* api number */
Note:
See TracChangeset
for help on using the changeset viewer.