summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/struct-ret-3.c
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2008-01-13 16:51:26 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2008-01-13 16:51:26 +0000
commit82fbd19858f0cd2f5931c11f582cbb53412f4b8b (patch)
tree6cb6bccf2778b07502d879b7634356782560b055 /gcc/testsuite/gcc.dg/struct-ret-3.c
parent3ff99faaa5ff7f3e0e497316efbc488cc5e0175e (diff)
downloadgcc-82fbd19858f0cd2f5931c11f582cbb53412f4b8b.tar.gz
Fix nit.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131507 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/struct-ret-3.c')
-rw-r--r--gcc/testsuite/gcc.dg/struct-ret-3.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/struct-ret-3.c b/gcc/testsuite/gcc.dg/struct-ret-3.c
index 0b47d40768b..edb259ccec0 100644
--- a/gcc/testsuite/gcc.dg/struct-ret-3.c
+++ b/gcc/testsuite/gcc.dg/struct-ret-3.c
@@ -45,7 +45,8 @@ struct STRUCT_6_BYTES INIT_6_BYTES_ZERO()
void Initialize(struct XXX *this, int iIndex)
{
- struct SQLU_DICT_INFO_0 *pDictRidderInfo = this->m_pDatapart[iIndex].pDictRidderInfo;
+ struct SQLU_DICT_INFO_0 *pDictRidderInfo
+ = this->m_pDatapart[iIndex].pDictRidderInfo;
pDictRidderInfo->bSomeFlag1 = 0;
pDictRidderInfo->bSomeFlag2 = 0;
pDictRidderInfo->dRID = INIT_6_BYTES_ZERO();
@@ -68,7 +69,7 @@ int main(void)
char buf[sizeof(struct stuff)+4096];
struct stuff *u = (struct stuff *)ossAlignX((unsigned long)&buf[0], 4096);
- memset(u, 1, sizeof(u));
+ memset(u, 1, sizeof(struct stuff));
u->c1[0] = '\xAA';
u->c2[0] = '\xBB';
u->c3[0] = '\xCC';