mirror of
https://github.com/samba-team/samba.git
synced 2025-01-03 01:18:10 +03:00
libcli: Align a few integer types
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
5c81a5a0d9
commit
a41112fcc9
@ -125,7 +125,7 @@ const char *win_errstr(WERROR werror)
|
|||||||
|
|
||||||
const char *get_friendly_werror_msg(WERROR werror)
|
const char *get_friendly_werror_msg(WERROR werror)
|
||||||
{
|
{
|
||||||
int i = 0;
|
size_t i = 0;
|
||||||
|
|
||||||
for (i = 0; i < ARRAY_SIZE(dos_err_strs); i++) {
|
for (i = 0; i < ARRAY_SIZE(dos_err_strs); i++) {
|
||||||
if (W_ERROR_V(dos_err_strs[i].werror) ==
|
if (W_ERROR_V(dos_err_strs[i].werror) ==
|
||||||
|
@ -142,7 +142,7 @@ static const struct {
|
|||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
NTSTATUS map_nt_error_from_unix_common(int unix_error)
|
NTSTATUS map_nt_error_from_unix_common(int unix_error)
|
||||||
{
|
{
|
||||||
int i;
|
size_t i;
|
||||||
|
|
||||||
/* Look through list */
|
/* Look through list */
|
||||||
for (i=0;i<ARRAY_SIZE(unix_nt_errmap);i++) {
|
for (i=0;i<ARRAY_SIZE(unix_nt_errmap);i++) {
|
||||||
|
@ -14676,7 +14676,7 @@ static const struct {
|
|||||||
const char *hresult_errstr_const(HRESULT err_code)
|
const char *hresult_errstr_const(HRESULT err_code)
|
||||||
{
|
{
|
||||||
const char *result = NULL;
|
const char *result = NULL;
|
||||||
int i;
|
size_t i;
|
||||||
for (i = 0; i < ARRAY_SIZE(hresult_errs); ++i) {
|
for (i = 0; i < ARRAY_SIZE(hresult_errs); ++i) {
|
||||||
if (HRES_IS_EQUAL(err_code, hresult_errs[i].error_code)) {
|
if (HRES_IS_EQUAL(err_code, hresult_errs[i].error_code)) {
|
||||||
result = hresult_errs[i].error_message;
|
result = hresult_errs[i].error_message;
|
||||||
@ -14694,7 +14694,7 @@ const char *hresult_errstr_const(HRESULT err_code)
|
|||||||
const char *hresult_errstr(HRESULT err_code)
|
const char *hresult_errstr(HRESULT err_code)
|
||||||
{
|
{
|
||||||
static char msg[22];
|
static char msg[22];
|
||||||
int i;
|
size_t i;
|
||||||
|
|
||||||
for (i = 0; i < ARRAY_SIZE(hresult_errs); i++) {
|
for (i = 0; i < ARRAY_SIZE(hresult_errs); i++) {
|
||||||
if (HRES_IS_EQUAL(err_code, hresult_errs[i].error_code)) {
|
if (HRES_IS_EQUAL(err_code, hresult_errs[i].error_code)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user