summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorAntoine Ginies <aginies@mandriva.com>2011-04-13 09:50:18 +0000
committerAntoine Ginies <aginies@mandriva.com>2011-04-13 09:50:18 +0000
commite765ca17fcc1e3cc7d201f82e6cf71b3107bdb64 (patch)
treef377cf82b477f8d69b894cbe048506bd53e755e2 /mdk-stage1
parent420834d91de7a138573e296844fb13a1dc66567d (diff)
downloaddrakx-e765ca17fcc1e3cc7d201f82e6cf71b3107bdb64.tar
drakx-e765ca17fcc1e3cc7d201f82e6cf71b3107bdb64.tar.gz
drakx-e765ca17fcc1e3cc7d201f82e6cf71b3107bdb64.tar.bz2
drakx-e765ca17fcc1e3cc7d201f82e6cf71b3107bdb64.tar.xz
drakx-e765ca17fcc1e3cc7d201f82e6cf71b3107bdb64.zip
restore previous commit (due to SVN issue)
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/ppp/pppd/tdb.c4
-rw-r--r--mdk-stage1/ppp/pppd/utils.c3
2 files changed, 3 insertions, 4 deletions
diff --git a/mdk-stage1/ppp/pppd/tdb.c b/mdk-stage1/ppp/pppd/tdb.c
index 7fd58291e..fd8ce6082 100644
--- a/mdk-stage1/ppp/pppd/tdb.c
+++ b/mdk-stage1/ppp/pppd/tdb.c
@@ -482,7 +482,7 @@ static tdb_off tdb_allocate(TDB_CONTEXT *tdb, tdb_len length)
static int tdb_new_database(TDB_CONTEXT *tdb, int hash_size)
{
struct tdb_header header;
- tdb_off offset;
+// tdb_off offset;
int i, size = 0;
tdb_off buf[16];
@@ -501,7 +501,7 @@ static int tdb_new_database(TDB_CONTEXT *tdb, int hash_size)
} else size += sizeof(header);
/* the freelist and hash pointers */
- offset = 0;
+// offset = 0;
memset(buf, 0, sizeof(buf));
for (i=0;(hash_size+1)-i >= 16; i += 16) {
diff --git a/mdk-stage1/ppp/pppd/utils.c b/mdk-stage1/ppp/pppd/utils.c
index 5861d8980..8605ff201 100644
--- a/mdk-stage1/ppp/pppd/utils.c
+++ b/mdk-stage1/ppp/pppd/utils.c
@@ -616,10 +616,9 @@ logit(level, fmt, args)
char *fmt;
va_list args;
{
- int n;
char buf[1024];
- n = vslprintf(buf, sizeof(buf), fmt, args);
+// int n = vslprintf(buf, sizeof(buf), fmt, args);
log_write(level, buf);
}