mirror of
https://github.com/serge1/ELFIO.git
synced 2024-12-26 09:14:29 +00:00
Just formatting
This commit is contained in:
parent
bb572fb848
commit
41f4012d49
@ -284,8 +284,8 @@ template <class T> class section_impl : public section
|
||||
( *translator )[( *convertor )( header.sh_offset )];
|
||||
Elf_Xword size = get_size();
|
||||
if ( nullptr == data && SHT_NULL != get_type() &&
|
||||
SHT_NOBITS != get_type() &&
|
||||
sh_offset <= get_stream_size() && size <= (get_stream_size() - sh_offset)) {
|
||||
SHT_NOBITS != get_type() && sh_offset <= get_stream_size() &&
|
||||
size <= ( get_stream_size() - sh_offset ) ) {
|
||||
data.reset( new ( std::nothrow ) char[size_t( size ) + 1] );
|
||||
|
||||
if ( ( 0 != size ) && ( nullptr != data ) ) {
|
||||
|
@ -68,8 +68,8 @@ int main( int argc, char** argv )
|
||||
std::ifstream proc_maps( std::string( "/proc/" ) + argv[1] + "/maps" );
|
||||
if ( !proc_maps ) {
|
||||
std::cout << "Can't open "
|
||||
<< std::string( "/proc/" ) + argv[1] + "/maps"
|
||||
<< " file" << std::endl;
|
||||
<< std::string( "/proc/" ) + argv[1] + "/maps" << " file"
|
||||
<< std::endl;
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user