From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-qw0-f44.google.com ([209.85.216.44]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1RWhVE-00064z-Vn for ptxdist@pengutronix.de; Sat, 03 Dec 2011 05:47:29 +0100 Received: by qadb15 with SMTP id b15so877165qad.10 for ; Fri, 02 Dec 2011 20:46:58 -0800 (PST) From: Jon Ringle Date: Fri, 2 Dec 2011 23:46:49 -0500 Message-Id: <1322887609-17262-1-git-send-email-jon@ringle.org> In-Reply-To: <20111202152602.GB16442@pengutronix.de> References: <20111202152602.GB16442@pengutronix.de> MIME-Version: 1.0 Subject: [ptxdist] [PATCH] ptxd_ipkg_rev_smaller: fix compare Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de RGVyaXZlZCBmcm9tIHNvbHV0aW9uIG9mIHRoZSBzY3JpcHQgZ2l2ZW4gaW4gdGhlIGZvbGxvd2lu ZyB0aHJlYWQ6Cmh0dHA6Ly9saXN0cy51cy5kZWxsLmNvbS9waXBlcm1haWwvZGttcy1kZXZlbC8y MDA0LUp1bHkvMDAwMTQyLmh0bWwKClRoYW5rcyB0byBCZW5vw650IEJVUk5JQ0hPTiBmb3IgcG9y dGluZyB0byBwdHhkaXN0CgpTaWduZWQtb2ZmLWJ5OiBKb24gUmluZ2xlIDxqb25AcmluZ2xlLm9y Zz4KLS0tCiBzY3JpcHRzL2xpYnB0eGRpc3Quc2ggfCAgIDYzICsrKysrKysrKysrKysrKysrKysr KysrKysrKysrKysrKysrKysrKysrKysrKysrKysKIDEgZmlsZXMgY2hhbmdlZCwgNjMgaW5zZXJ0 aW9ucygrKSwgMCBkZWxldGlvbnMoLSkKCmRpZmYgLS1naXQgYS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