Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Oct 2004 12:01:13 EDT
From:      "Rogier R. Mulhuijzen" <lists@bsdchicks.com>
To:        current@freebsd.org
Cc:        freebsd-current@freebsd.org
Subject:   Re: [PATCH] NDISulator fixed to work with wicontrol -L and dstum
Message-ID:  <BasiliX-1.1.0-1098979273418117c981850@artemis.drwilco.net>

next in thread | raw e-mail | index | archive | help
--eddad4b6d552877d0a2e4dbb62dcc17e-1098979273
Content-Type: text/plain

On 27 Oct 2004 16:49 EDT you wrote:

> 
> [Rogier R. Mulhuijzen, 2004-10-27]
> >  Also my whitespace use might not be standard, since I don't know what 
> >  the standard is.
> 
> See style(9)

Noted.

Updated http://www.bsdchicks.com/patches/if_ndis.c.patch to reflect a few style updates to the parts I added.

Also attached the patch.

Greetings,

        DocWilco


--eddad4b6d552877d0a2e4dbb62dcc17e-1098979273
Content-Type: application/octet-stream
Content-Transfer-Encoding: base64
Content-Description: if_ndis.c.patch
Content-Disposition: attachment; filename="if_ndis.c.patch"

LS0tIHN5cy9kZXYvaWZfbmRpcy9pZl9uZGlzLmMub3JpZwlXZWQgT2N0IDI3
IDE3OjAxOjU1IDIwMDQKKysrIHN5cy9kZXYvaWZfbmRpcy9pZl9uZGlzLmMJ
VGh1IE9jdCAyOCAxNzozNTo1NSAyMDA0CkBAIC0yMDExLDcgKzIwMTEsOSBA
QAogCW5kaXNfODAyMTFfYnNzaWRfbGlzdF9leCAqYmw7CiAJbmRpc193bGFu
X2Jzc2lkX2V4CSp3YjsKIAlzdHJ1Y3Qgd2lfYXBpbmZvCSphcGk7Ci0JaW50
CQkJZXJyb3IsIGksIGosIGxlbiwgbWF4YXBzOworCXN0cnVjdCB3aV9zY2Fu
X3AyX2hkcgkqcDI7CisJc3RydWN0IHdpX3NjYW5fcmVzCSpyZXM7CisJaW50
CQkJZXJyb3IsIGksIGosIGssIGxlbiwgbWF4YXBzOwogCiAJc2MgPSBpZnAt
PmlmX3NvZnRjOwogCWlmciA9ICh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gmd3Jl
cSwgaWZyLT5pZnJfZGF0YSwgc2l6ZW9mKHdyZXEpKTsKIAkJYnJlYWs7Cg==
--eddad4b6d552877d0a2e4dbb62dcc17e-1098979273--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BasiliX-1.1.0-1098979273418117c981850>