summaryrefslogtreecommitdiffstats
path: root/libebl/eblobjnotetypename.c
diff options
context:
space:
mode:
Diffstat (limited to 'libebl/eblobjnotetypename.c')
-rw-r--r--libebl/eblobjnotetypename.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libebl/eblobjnotetypename.c b/libebl/eblobjnotetypename.c
index 29a5391c..6b803cef 100644
--- a/libebl/eblobjnotetypename.c
+++ b/libebl/eblobjnotetypename.c
@@ -91,13 +91,11 @@ ebl_object_note_type_name (Ebl *ebl, const char *name, uint32_t type,
t += w;
len -= w;
if (type == NT_GNU_BUILD_ATTRIBUTE_OPEN)
- w = snprintf (t, len, "OPEN");
+ snprintf (t, len, "OPEN");
else if (type == NT_GNU_BUILD_ATTRIBUTE_FUNC)
- w = snprintf (t, len, "FUNC");
+ snprintf (t, len, "FUNC");
else
- w = snprintf (t, len, "%x", type);
- t += w;
- len -= w;
+ snprintf (t, len, "%x", type);
return buf;
}