diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-05-06 06:30:51 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-05-06 06:30:51 +0000 |
commit | f46306945c95adc9a6232ce86f908f2a51a771dd (patch) | |
tree | 7cfaba83c1935bc6624472e44d94f38ced09039c /mdk-stage1/rp-pppoe/src | |
parent | ab69c718222a8ad2f0fd91d26c6ca8dde5e5e797 (diff) | |
download | drakx-f46306945c95adc9a6232ce86f908f2a51a771dd.tar drakx-f46306945c95adc9a6232ce86f908f2a51a771dd.tar.gz drakx-f46306945c95adc9a6232ce86f908f2a51a771dd.tar.bz2 drakx-f46306945c95adc9a6232ce86f908f2a51a771dd.tar.xz drakx-f46306945c95adc9a6232ce86f908f2a51a771dd.zip |
Stage 1 compilation fixes for gcc 4.0 :
* more casts signed<->unsigned types
* make choose_iso_in_directory()'s return type "void"
* change order of .h files in network.c so strndup is included correctly
* newt: initialize some variables properly
* compile pcmcia and ppp with -Wno-deprecated-declarations, since they use
deprecated types such as u_int32_t
Diffstat (limited to 'mdk-stage1/rp-pppoe/src')
-rw-r--r-- | mdk-stage1/rp-pppoe/src/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mdk-stage1/rp-pppoe/src/common.c b/mdk-stage1/rp-pppoe/src/common.c index b27302104..b6e43996b 100644 --- a/mdk-stage1/rp-pppoe/src/common.c +++ b/mdk-stage1/rp-pppoe/src/common.c @@ -418,7 +418,7 @@ sendPADT(PPPoEConnection *conn, char const *msg) size_t elen = strlen(msg); err.type = htons(TAG_GENERIC_ERROR); err.length = htons(elen); - strcpy(err.payload, msg); + strcpy((char *)err.payload, msg); memcpy(cursor, &err, elen + TAG_HDR_SIZE); cursor += elen + TAG_HDR_SIZE; plen += elen + TAG_HDR_SIZE; |