mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3:registry: Remove trailing spaces in reg_perfcount.c
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
This commit is contained in:
parent
3cb4073cd0
commit
10b95ff436
@ -1,20 +1,20 @@
|
||||
/*
|
||||
/*
|
||||
* Unix SMB/CIFS implementation.
|
||||
* Virtual Windows Registry Layer
|
||||
*
|
||||
* Copyright (C) Marcin Krzysztof Porwit 2005,
|
||||
* Copyright (C) Gerald (Jerry) Carter 2005.
|
||||
*
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
@ -178,7 +178,7 @@ static uint32_t _reg_perfcount_multi_sz_from_tdb(TDB_CONTEXT *tdb,
|
||||
dbuf = tdb_fetch(tdb, kbuf);
|
||||
if(dbuf.dptr == NULL)
|
||||
{
|
||||
/* If a key isn't there, just bypass it -- this really shouldn't
|
||||
/* If a key isn't there, just bypass it -- this really shouldn't
|
||||
happen unless someone's mucking around with the tdb */
|
||||
DEBUG(3, ("_reg_perfcount_multi_sz_from_tdb: failed to find key [%s] in [%s].\n",
|
||||
temp, tdb_name(tdb)));
|
||||
@ -341,7 +341,7 @@ static void _reg_perfcount_make_key(TDB_DATA *key,
|
||||
memset(buf, 0, buflen);
|
||||
if(key_part2 != NULL)
|
||||
snprintf(buf, buflen,"%d%s", key_part1, key_part2);
|
||||
else
|
||||
else
|
||||
snprintf(buf, buflen, "%d", key_part1);
|
||||
|
||||
*key = string_tdb_data(buf);
|
||||
@ -602,7 +602,7 @@ static bool _reg_perfcount_get_counter_info(struct PERF_DATA_BLOCK *block,
|
||||
return False;
|
||||
if(dbuf[0] != 0 || dbuf[1] != 0)
|
||||
{
|
||||
memcpy((void *)(obj->counter_data.data +
|
||||
memcpy((void *)(obj->counter_data.data +
|
||||
(obj->counter_data.ByteLength - (sizeof(uint32_t) + dsize))),
|
||||
(const void *)dbuf, dsize);
|
||||
}
|
||||
@ -860,7 +860,7 @@ static int _reg_perfcount_assemble_global(struct PERF_DATA_BLOCK *block,
|
||||
}
|
||||
else
|
||||
DEBUG(3, ("NULL relationship for counter [%d] using key [%s].\n", j, keybuf));
|
||||
}
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
|
||||
@ -1054,8 +1054,8 @@ static uint32_t _reg_perfcount_perf_data_block_fixup(struct PERF_DATA_BLOCK *blo
|
||||
counter = &(object[obj].counters[object[obj].NumCounters - 1]);
|
||||
counter_data->ByteLength = counter->CounterOffset + counter->CounterSize + sizeof(counter_data->ByteLength);
|
||||
temp = talloc_realloc(mem_ctx,
|
||||
temp,
|
||||
char,
|
||||
temp,
|
||||
char,
|
||||
counter_data->ByteLength- sizeof(counter_data->ByteLength));
|
||||
if (temp == NULL) {
|
||||
return 0;
|
||||
@ -1233,8 +1233,8 @@ static bool _reg_perfcount_marshall_perf_data_block(prs_struct *ps, struct PERF_
|
||||
if(!prs_uint32("SystemNameOffset", ps, depth, &block.SystemNameOffset))
|
||||
return False;
|
||||
/* hack to make sure we're 64-bit aligned at the end of this whole mess */
|
||||
if(!prs_uint8s(False, "SystemName", ps, depth, block.data,
|
||||
block.HeaderLength - block.SystemNameOffset))
|
||||
if(!prs_uint8s(False, "SystemName", ps, depth, block.data,
|
||||
block.HeaderLength - block.SystemNameOffset))
|
||||
return False;
|
||||
|
||||
return True;
|
||||
@ -1287,7 +1287,7 @@ static bool _reg_perfcount_marshall_perf_counters(prs_struct *ps,
|
||||
/*********************************************************************
|
||||
*********************************************************************/
|
||||
|
||||
static bool _reg_perfcount_marshall_perf_counter_data(prs_struct *ps,
|
||||
static bool _reg_perfcount_marshall_perf_counter_data(prs_struct *ps,
|
||||
struct PERF_COUNTER_BLOCK counter_data,
|
||||
int depth)
|
||||
{
|
||||
@ -1460,4 +1460,4 @@ WERROR reg_perfcount_get_hkpd(prs_struct *ps, uint32_t max_buf_size, uint32_t *o
|
||||
|
||||
return WERR_INSUFFICIENT_BUFFER;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user