summaryrefslogtreecommitdiffhomepage
path: root/src/sprintf.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-05-17 12:57:08 +0900
committerYukihiro Matsumoto <[email protected]>2012-05-17 12:57:08 +0900
commitb68e69aa326c98fbe9676e00aea211a49c6ae361 (patch)
tree9e4d9b9a72aa4613bc78db4a7c5e7e9ff604376c /src/sprintf.c
parentcc4b2c5c6a7085d8da9591b3da627bf27fe1f7b5 (diff)
downloadmruby-b68e69aa326c98fbe9676e00aea211a49c6ae361.tar.gz
mruby-b68e69aa326c98fbe9676e00aea211a49c6ae361.zip
remove unused assignments
Diffstat (limited to 'src/sprintf.c')
-rw-r--r--src/sprintf.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/sprintf.c b/src/sprintf.c
index 975f26f56..12d96c92d 100644
--- a/src/sprintf.c
+++ b/src/sprintf.c
@@ -28,10 +28,9 @@ static void fmt_setup(char*,size_t,int,int,int,int);
static char*
remove_sign_bits(char *str, int base)
{
- char *s, *t;
-
- s = t = str;
+ char *t;
+ t = str;
if (base == 16) {
while (*t == 'f') {
t++;
@@ -780,7 +779,7 @@ format_s:
char sc = 0;
long v = 0, org_v = 0;
int base;
- int len, pos;
+ int len;
switch (*p) {
case 'd':
@@ -901,7 +900,6 @@ bin_retry:
}
len = (int)strlen(s);
- pos = -1;
if (dots) {
prec -= 2;
width -= 2;