summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Nimmagadda <sunil@sunilnimmagadda.com>2014-04-19 19:26:56 +0500
committerSunil Nimmagadda <sunil@sunilnimmagadda.com>2014-04-19 19:26:56 +0500
commit4b1cd4a69fc13dae530daf2535f1f5591962b611 (patch)
treecc2fdae1f16114671176f4b60a30ad8d24a6d3e4
parente0d44409373f6b3c8ba61c1f7be0deac088a250d (diff)
This cannot truncate unless new states are added.
-rw-r--r--session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/session.c b/session.c
index ff4d705..c02174e 100644
--- a/session.c
+++ b/session.c
@@ -675,7 +675,7 @@ strstate(enum state state)
CASE(TRANSACTION);
CASE(UPDATE);
default:
- snprintf(buf, sizeof(buf), "%d ???", state);
+ (void)snprintf(buf, sizeof(buf), "%d ???", state);
return (buf);
}
}