cc-1164 cc: WARNING File = passdb/pdb_ldap.c, Line = 725 Argument of type "int *" is incompatible with parameter of type "unsigned int *". account_policy_get(AP_PASSWORD_HISTORY, &pwHistLen); ^ cc-1164 cc: WARNING File = passdb/pdb_ldap.c, Line = 1071 Argument of type "int *" is incompatible with parameter of type "unsigned int *". account_policy_get(AP_PASSWORD_HISTORY, &pwHistLen); ^ cc-1164 cc: WARNING File = passdb/pdb_ldap.c, Line = 1078 Argument of type "int *" is incompatible with parameter of type "unsigned int *". const uint8 *pwhist = pdb_get_pw_history(sampass, &currHistLen); ^ cc-1140 cc: WARNING File = passdb/pdb_ldap.c, Line = 1106 A value of type "const unsigned char *" cannot be used to initialize an entity of type "const char *". const char *hours = pdb_get_hours(sampass); ^ cc-1164 cc: WARNING File = passdb/pdb_ldap.c, Line = 1108 Argument of type "const char *" is incompatible with parameter of type "const unsigned char *". pdb_sethexhours(temp, hours); ^
env CC=cc CFLAGS="-O" ./configure --with-quotas --with-acl-support --without-ads
line 478, and line 1070: pwHistLena should be 'unsigned int' line 1077: currHistLen should be 'unsigned int' line 1106: hours should be 'const unsight char *' also, line 2743: attrs might be 'char *' not const (at least on Irix) cc-1164 cc: WARNING File = passdb/pdb_ldap.c, Line = 2758 Argument of type "const char **" is incompatible with parameter of type "char **". LDAP_SCOPE_SUBTREE, filter, attrs, 0, &result);
Line 2743 has been been fixed in Samba 3.0.11pre1, but the other incompatible parameter types remain.
Created attachment 926 [details] fixes several incompatible types in pdb_ldap.c Current for Samba 3.0.11rc1
(additional for 3.0.11) cc-1164 cc: WARNING File = passdb/pdb_ldap.c, Line = 730 Argument of type "int *" is incompatible with parameter of type "unsigned int *". account_policy_get(AP_PASSWORD_HISTORY, &pwHistLen); ^ cc-1164 cc: WARNING File = passdb/pdb_ldap.c, Line = 1074 Argument of type "int *" is incompatible with parameter of type "unsigned int *". account_policy_get(AP_PASSWORD_HISTORY, &pwHistLen); ^ cc-1164 cc: WARNING File = passdb/pdb_ldap.c, Line = 1081 Argument of type "int *" is incompatible with parameter of type "unsigned int *". const uint8 *pwhist = pdb_get_pw_history(sampass, &currHistLen); ^ cc-1140 cc: WARNING File = passdb/pdb_ldap.c, Line = 1109 A value of type "const unsigned char *" cannot be used to initialize an entity of type "const char *". const char *hours = pdb_get_hours(sampass); ^ cc-1164 cc: WARNING File = passdb/pdb_ldap.c, Line = 1111 Argument of type "const char *" is incompatible with parameter of type "const unsigned char *". pdb_sethexhours(temp, hours); ^
Created attachment 1043 [details] changes pwHistLen to "unsigned int" and hours to "const unsigned char *" Revised for Samba 3.0.12rc1
fixed. thanks.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.