Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Apr 2016 17:04:35 -0500
From:      Pedro Giffuni <pfg@FreeBSD.org>
To:        pkg@FreeBSD.org
Subject:   coccinelle cleanups for pkg
Message-ID:  <6fc474bd-0a2b-a689-644c-a544d0968828@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------C408F28D0E5D324C799FB5D7
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

Hello;

Playing a bit with coccinelle, it found some minor cosmetic issues in
pkg. Just some extra semicolons and one place where NULLs should be
used instead of zero.

Regards,

Pedro.

--------------C408F28D0E5D324C799FB5D7
Content-Type: text/plain; charset=UTF-8;
 name="patch-nulls"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="patch-nulls"

LS0tIGxpYnBrZy9kaWZmLmMub3JpZwkyMDE1LTA4LTAyIDIyOjEwOjQ4IFVUQworKysgbGli
cGtnL2RpZmYuYwpAQCAtMzQ4LDcgKzM0OCw3IEBAIHN0YXRpYyB2b2lkIGFwcGVuZFRyaXBs
ZShEQ29udGV4dCAqcCwgaW4KICAgfQogICBpZiggcC0+bkVkaXQrMz5wLT5uRWRpdEFsbG9j
ICl7CiAgICAgZXhwYW5kRWRpdChwLCBwLT5uRWRpdCoyICsgMTUpOwotICAgIGlmKCBwLT5h
RWRpdD09MCApIHJldHVybjsKKyAgICBpZiggcC0+YUVkaXQ9PU5VTEwgKSByZXR1cm47CiAg
IH0KICAgcC0+YUVkaXRbcC0+bkVkaXQrK10gPSBuQ29weTsKICAgcC0+YUVkaXRbcC0+bkVk
aXQrK10gPSBuRGVsOwpAQCAtNDczLDcgKzQ3Myw3IEBAIHRleHRfZGlmZigKICAgYy5zYW1l
X2ZuID0gc2FtZV9kbGluZTsKICAgYy5hRnJvbSA9IGJyZWFrX2ludG9fbGluZXMocEEsICZj
Lm5Gcm9tKTsKICAgYy5hVG8gPSBicmVha19pbnRvX2xpbmVzKHBCLCAmYy5uVG8pOwotICBp
ZiggYy5hRnJvbT09MCB8fCBjLmFUbz09MCApeworICBpZiggYy5hRnJvbT09TlVMTCB8fCBj
LmFUbz09TlVMTCApewogICAgIGZyZWUoYy5hRnJvbSk7CiAgICAgZnJlZShjLmFUbyk7CiAg
ICAgcmV0dXJuIDA7Ci0tLSBsaWJwa2cvbWVyZ2UzLmMub3JpZwkyMDE1LTA5LTAyIDIyOjI0
OjM5IFVUQworKysgbGlicGtnL21lcmdlMy5jCkBAIC0xNjgsNyArMTY4LDcgQEAgc2J1Zl9t
ZXJnZShjaGFyICpwUGl2b3QsIGNoYXIgKnBWMSwgY2hhcgogICAqLwogICBhQzEgPSB0ZXh0
X2RpZmYocFBpdm90LCBwVjEpOwogICBhQzIgPSB0ZXh0X2RpZmYocFBpdm90LCBwVjIpOwot
ICBpZiggYUMxPT0wIHx8IGFDMj09MCApeworICBpZiggYUMxPT1OVUxMIHx8IGFDMj09TlVM
TCApewogICAgIGZyZWUoYUMxKTsKICAgICBmcmVlKGFDMik7CiAgICAgcmV0dXJuIC0xOwo=
--------------C408F28D0E5D324C799FB5D7--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6fc474bd-0a2b-a689-644c-a544d0968828>