[Prism54-devel] Re: AVS rf-monitor header

Antonio Eugenio Burriel aeb@ryanstudios.com
Fri, 19 Mar 2004 18:43:13 +0100


--=-O6ow0OVJm44fBYvSb8w/
Content-Type: multipart/mixed; boundary="=-DZrq4GjazkEmu6We5Bnn"


--=-DZrq4GjazkEmu6We5Bnn
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: quoted-printable

El vie, 19-03-2004 a las 09:21, Margit Schubert-While escribi=F3:
> Well, this is obviously wrong; I'm suprised it even compiles :
>=20
> int f =3D (f > 100000 ? m / 100000 : m);
ouch! obviously. This morning the third thing I did was to remake this ugly=
 thing.
A new&cleaner patch is attached.

> Also, it won't patch against current CVS and the patch file
> is in DOS format :-)
The patch was (and is) against prism54-20040318 and I don't catch that abou=
t DOS format. A simple hexdump shows only LF for each end-of-line. Probably=
 I'm missing anything else. I don't master diff.
It applies cleanly for me against
http://prism54.org/pub/linux/snapshot/tars/2004-03/prism54-cvs20040318.tar.=
bz2

I should have waited a few hours, however.

Well, last night I forgot to thank to Kismet, Ethereal and Linux-Wlan
developers for their sources.

--=-DZrq4GjazkEmu6We5Bnn
Content-Disposition: attachment; filename=prism54-avs-monitor-revB.patch
Content-Type: text/x-patch; name=prism54-avs-monitor-revB.patch; charset=iso-8859-15
Content-Transfer-Encoding: base64

ZGlmZiAtTmF1ciBwcmlzbTU0LWN2czIwMDQwMzE4L2tzcmMvaXNsX2lvY3RsLmMgcHJpc201NC1j
dnMyMDA0MDMxOC1hZWIva3NyYy9pc2xfaW9jdGwuYw0KLS0tIHByaXNtNTQtY3ZzMjAwNDAzMTgv
a3NyYy9pc2xfaW9jdGwuYwkyMDA0LTAzLTE4IDA2OjI1OjI0LjAwMDAwMDAwMCArMDEwMA0KKysr
IHByaXNtNTQtY3ZzMjAwNDAzMTgtYWViL2tzcmMvaXNsX2lvY3RsLmMJMjAwNC0wMy0xOSAxMTow
NToyOC4wMDAwMDAwMDAgKzAxMDANCkBAIC0zMjEsNiArMzIxLDI3I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zJfdCBsZW5ndGg7DQorCXVpbnQ2NF90IG1hY3RpbWU7
DQorCXVpbnQ2NF90IGhvc3R0aW1lOw0KKwl1aW50MzJfdCBwaHl0eXBlOw0KKwl1aW50MzJfdCBj
aGFubmVsOw0KKwl1aW50MzJfdCBkYXRhcmF0ZTsNCisJdWludDMyX3QgYW50ZW5uYTsNCisJdWlu
dDMyX3QgcHJpb3JpdHk7DQorCXVpbnQzMl90IHNzaV90eXBlOw0KKwlpbnQzMl90IHNzaV9zaWdu
YWw7DQorCWludDMyX3Qgc3NpX25vaXNlOw0KKwl1aW50MzJfdCBwcmVhbWJsZTsNCisJdWludDMy
X3QgZW5jb2Rpbmc7DQorfSBhdnNfODAyMTFfMV9oZWFkZXI7DQorDQorZXh0ZXJuIGludCBmcmVx
MmNoYW5uZWwoaW50KTsNCisNCiB2b2lkIGlzbHBjaV9ldGhfY2xlYW51cF90cmFuc21pdChpc2xw
Y2lfcHJpdmF0ZSAqLCBpc2wzOHh4X2NvbnRyb2xfYmxvY2sgKik7DQogaW50IGlzbHBjaV9ldGhf
dHJhbnNtaXQoc3RydWN0IHNrX2J1ZmYgKiwgc3RydWN0IG5ldF9kZXZpY2UgKik7DQogaW50IGlz
bHBjaV9ldGhfcmVjZWl2ZShpc2xwY2lfcHJpdmF0ZSAqKTsNCj==

--=-DZrq4GjazkEmu6We5Bnn--

--=-O6ow0OVJm44fBYvSb8w/
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
	digitalmente

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBAWzEwDwClThbmH4sRAiCJAJ9jT8yn5d2bRuDbrKr33j3rfk3gfACdGklH
/uyS14sqI/78cWKXi4Zo+p0=
=0lza
-----END PGP SIGNATURE-----

--=-O6ow0OVJm44fBYvSb8w/--