Commit 51efb34d authored by Diego Biurrun's avatar Diego Biurrun

whitespace cleanup

parent b7967b94
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
......@@ -56,7 +56,7 @@ patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
......@@ -255,7 +255,7 @@ make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
......@@ -277,9 +277,9 @@ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
......
......@@ -146,4 +146,3 @@ Changes between 0.0.1 and 0.0.2:
* internal key cache mechanism
* stability fixes
......@@ -59,4 +59,3 @@ Resources
The VideoLAN web site at http://www.videolan.org/ is a good start for
information about MPEG and DVD playback. Have a look at the support
section to look for answers.
......@@ -189,7 +189,7 @@ AC_CHECK_HEADERS(sys/ioctl.h,[
])
])
dnl
dnl Darwin
dnl Darwin
dnl
AC_CHECK_HEADER(IOKit/storage/IODVDMediaBSDClient.h,[
AC_DEFINE(DARWIN_DVD_IOCTL, 1, Have IOKit DVD IOCTL headers)
......@@ -199,7 +199,7 @@ AC_CHECK_HEADERS(sys/ioctl.h,[
dnl Final tests to check what was detected
dnl
if test x$LINUX_DVD_STRUCT = x1; then
AC_DEFINE(HAVE_LINUX_DVD_STRUCT, 1,
AC_DEFINE(HAVE_LINUX_DVD_STRUCT, 1,
Define if Linux-like dvd_struct is defined.)
if test x$OPENBSD_DVD_STRUCT = x1; then
AC_DEFINE(HAVE_OPENBSD_DVD_STRUCT, 1,
......
%define name libdvdcss
%define version 1.2.9
%define release 1
%define name libdvdcss
%define version 1.2.9
%define release 1
%define major 2
%define major 2
%define libname %{name}%{major}
%define buildfor_rh9 %([[ -e /etc/mandrake-release ]] && echo 0 || echo 1)
......@@ -16,17 +16,17 @@
%endif
Name: %{name}
Version: %{version}
Release: %{release}
Name: %{name}
Version: %{version}
Release: %{release}
Summary: Library for accessing DVDs like block devices with transparent decryption
Source: %{name}-%{version}.tar.bz2
License: GPL
Group: System/Libraries
URL: http://www.videolan.org/libdvdcss/
Packager: Yves Duret <yves@zarb.org>
BuildRoot: %_tmppath/%name-%version-%release-root
Conflicts: libdvdcss0.0.1, libdvdcss0.0.2
Source: %{name}-%{version}.tar.bz2
License: GPL
Group: System/Libraries
URL: http://www.videolan.org/libdvdcss/
Packager: Yves Duret <yves@zarb.org>
BuildRoot: %_tmppath/%name-%version-%release-root
Conflicts: libdvdcss0.0.1, libdvdcss0.0.2
%description
libdvdcss is a simple library designed for accessing DVDs like a block device
......@@ -60,14 +60,14 @@ without having to bother about the decryption. The important features are:
%package -n %{libname}-devel
Summary: Development tools for programs which will use the %{name} library
Group: Development/C
Requires: %{libname} = %version-%release
Requires: %{libname} = %version-%release
Provides: %{name}-devel = %version-%release
%description -n %{libname}-devel
The %{name}-devel package includes the header files and static libraries
necessary for developing programs which will manipulate DVDs files using
the %{name} library.
If you are going to develop programs which will manipulate DVDs, you
should install %{name}-devel. You'll also need to have the %{name}
package installed.
......@@ -86,7 +86,7 @@ package installed.
[ %buildroot != "/" ] && rm -Rf %buildroot
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n %{libname}
......@@ -156,7 +156,7 @@ package installed.
* Sat Apr 06 2002 Guillaume Rousse <rousse@ccr.jussieu.fr> 1.1.1-1plf
- 1.1.1
* Wed Jan 30 2002 Guillaume Rousse <rousse@ccr.jussieu.fr> 1.0.0-3plf
* Wed Jan 30 2002 Guillaume Rousse <rousse@ccr.jussieu.fr> 1.0.0-3plf
- new plf extension
* Wed Dec 05 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 1.0.0-3mdk
......
......@@ -239,8 +239,8 @@ AC_DEFUN([CC_FLAG_VISIBILITY], [
[cc_flag_visibility_save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $cc_cv_werror"
CC_CHECK_CFLAGS_SILENT([-fvisibility=hidden],
cc_cv_flag_visibility='yes',
cc_cv_flag_visibility='no')
cc_cv_flag_visibility='yes',
cc_cv_flag_visibility='no')
CFLAGS="$cc_flag_visibility_save_CFLAGS"])
AS_IF([test "x$cc_cv_flag_visibility" = "xyes"],
......@@ -260,7 +260,7 @@ AC_DEFUN([CC_FUNC_EXPECT], [
[int some_function() {
int a = 3;
return (int)__builtin_expect(a, 3);
}],
}],
[cc_cv_func_expect=yes],
[cc_cv_func_expect=no])
CFLAGS="$ac_save_CFLAGS"
......
......@@ -1072,4 +1072,3 @@ static int aspi_read_internal( int i_fd, void *p_data, int i_blocks )
return i_blocks;
}
#endif
......@@ -64,4 +64,3 @@ void _print_debug( dvdcss_t dvdcss, char *psz_string )
}
}
#endif
......@@ -777,4 +777,3 @@ LIBDVDCSS_EXPORT int dvdcss_is_scrambled ( dvdcss_t dvdcss )
{
return dvdcss->b_scrambled;
}
......@@ -124,4 +124,3 @@ static void dumpsector( unsigned char *p_buffer )
for( ; i_amount ; i_amount--, p_buffer++ ) printf( "%.2x", *p_buffer );
printf( "...\n" );
}
......@@ -176,7 +176,7 @@ static int print_region(int fd)
int type, region_mask, rpc_scheme;
int region = 1;
int ret;
printf("Drive region info:\n");
if( (ret = ioctl_ReportRPC(fd, &type, &region_mask, &rpc_scheme)) < 0) {
......@@ -194,11 +194,11 @@ static int print_region(int fd)
break;
case 2:
printf("Drive region is set, with additional " \
"restrictions required to make a change\n");
"restrictions required to make a change\n");
break;
case 3:
printf("Drive region has been set permanently, but " \
"may be reset by the vendor if necessary\n");
"may be reset by the vendor if necessary\n");
break;
default:
printf("Invalid( %x)\n", type);
......@@ -211,7 +211,7 @@ static int print_region(int fd)
if( region_mask)
while(region_mask) {
if( !(region_mask & 1) )
printf("%d playable\n", region);
printf("%d playable\n", region);
region++;
region_mask >>= 1;
}
......@@ -222,12 +222,12 @@ static int print_region(int fd)
switch( rpc_scheme ) {
case 0:
printf("The Logical Unit does not enforce Region " \
"Playback Controls( RPC)\n");
"Playback Controls( RPC)\n");
break;
case 1:
printf("The Logical Unit _shall_ adhere to the "
"specification and all requirements of the " \
"CSS license agreement concerning RPC\n");
"specification and all requirements of the " \
"CSS license agreement concerning RPC\n");
break;
default:
printf("Reserved( %x)\n", rpc_scheme);
......@@ -238,9 +238,9 @@ static int print_region(int fd)
static void usage(void)
{
fprintf( stderr,
"Usage: dvd_region [ -d device ] [ [ -s ] [ -r region ] ]\n" );
}
fprintf( stderr,
"Usage: dvd_region [ -d device ] [ [ -s ] [ -r region ] ]\n" );
}
int main(int argc, char *argv[])
{
......@@ -298,7 +298,7 @@ int main(int argc, char *argv[])
fprintf( stderr, "you must specify the region!\n" );
exit(0);
}
if( (ret = set_region(fd, region)) < 0 )
return ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment