From 99bc9b1d55033236cd0415e19b18fa7504f34caa Mon Sep 17 00:00:00 2001 From: Joshua Warner Date: Mon, 30 Apr 2012 12:44:18 -0600 Subject: [PATCH] prettify SymbolInfo array --- src/binaryToObject/main.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/binaryToObject/main.cpp b/src/binaryToObject/main.cpp index e9bc749abc..c3f3eb493f 100644 --- a/src/binaryToObject/main.cpp +++ b/src/binaryToObject/main.cpp @@ -52,11 +52,10 @@ writeObject(uint8_t* data, size_t size, OutputStream* out, const char* startName return false; } - SymbolInfo symbols[2]; - symbols[0].name = startName; - symbols[0].addr = 0; - symbols[1].name = endName; - symbols[1].addr = size; + SymbolInfo symbols[] = { + SymbolInfo(0, startName), + SymbolInfo(size, endName) + }; unsigned accessFlags = (writable ? Platform::Writable : 0) | (executable ? Platform::Executable : 0);