From patchwork Tue Aug 21 18:58:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gregor Jasny X-Patchwork-Id: 1357291 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 901CDDFB34 for ; Tue, 21 Aug 2012 18:58:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753484Ab2HUS6o (ORCPT ); Tue, 21 Aug 2012 14:58:44 -0400 Received: from mail-bk0-f46.google.com ([209.85.214.46]:60946 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752983Ab2HUS6n (ORCPT ); Tue, 21 Aug 2012 14:58:43 -0400 Received: by mail-bk0-f46.google.com with SMTP id j10so48011bkw.19 for ; Tue, 21 Aug 2012 11:58:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=dEGhcSFBA6dcpsYcPNLN0yS44UC2td/P8OULhDFj3h4=; b=yqqMKK21OjCqP9i1PbIn4At35+oaw/XosGNGh2H9Rz8NuP+7u51RVheOEu76ekFDVq hPDrqkQpxQNHJE6/sK+jdkNJGJS1PYQ0Z52UDd74hkxjC+JT//aXqq8G6MVEENEP6EVO vdoE+YsU7QwPJeGRhyjvjX5R7ibyHpz1L/0r6avfFFCKjdjXpnrZC0wbOh1bEOwzHGOU 9nKhwLbpGJ8J98Eod6Jgp5k9h3yV9+IptUokdSd8rzNLwRHLDRb36p2RVhdW0l0cbRN6 XWDNDLnCAZvu57uzfEjh0YGci9hzl95ZIDZC+VQquU3dGo3TMa3kLWC7lsk+jnvPKNUp Vpmg== Received: by 10.204.152.206 with SMTP id h14mr5640672bkw.36.1345575523275; Tue, 21 Aug 2012 11:58:43 -0700 (PDT) Received: from sid.fritz.box (f053080039.adsl.alicedsl.de. [78.53.80.39]) by mx.google.com with ESMTPS id hs2sm1389273bkc.1.2012.08.21.11.58.41 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 21 Aug 2012 11:58:42 -0700 (PDT) From: Gregor Jasny To: linux-media@vger.kernel.org Cc: prabhakar.lad@ti.com, Gregor Jasny Subject: [PATCH] libdvbv5: Fix byte swapping for embedded toolchains Date: Tue, 21 Aug 2012 20:58:22 +0200 Message-Id: <1345575502-3779-2-git-send-email-gjasny@googlemail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1345575502-3779-1-git-send-email-gjasny@googlemail.com> References: <1345575502-3779-1-git-send-email-gjasny@googlemail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Reported-by: "Lad, Prabhakar" Signed-off-by: Gregor Jasny --- lib/include/descriptors.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/include/descriptors.h b/lib/include/descriptors.h index 9039014..a64370c 100644 --- a/lib/include/descriptors.h +++ b/lib/include/descriptors.h @@ -25,7 +25,7 @@ #ifndef _DESCRIPTORS_H #define _DESCRIPTORS_H -#include +#include #include #include @@ -46,11 +46,11 @@ extern char *default_charset; extern char *output_charset; #define bswap16(b) do {\ - b = be16toh(b); \ + b = ntohs(b); \ } while (0) #define bswap32(b) do {\ - b = be32toh(b); \ + b = ntohl(b); \ } while (0) struct dvb_desc {