Browse Source

Some fixes for gcc4

master
Steve Weinreich 20 years ago committed by Ralf S. Engelschall
parent
commit
145bbfda8d
  1. 34
      cpu/cpu.patch
  2. 2
      cpu/cpu.spec

34
cpu/cpu.patch

@ -1,7 +1,7 @@
diff -Naur cpu-1.4.1.orig/doc/Makefile.in cpu-1.4.1/doc/Makefile.in
--- doc/Makefile.in 2003-09-22 06:07:10.000000000 +0200
+++ doc/Makefile.in 2003-09-22 10:19:24.000000000 +0200
@@ -446,18 +446,18 @@
Index: doc/Makefile.in
--- doc/Makefile.in.orig 2004-01-12 05:52:20 +0100
+++ doc/Makefile.in 2005-10-10 23:21:46 +0200
@@ -447,18 +447,18 @@
install-data-local:
@ -28,4 +28,28 @@ diff -Naur cpu-1.4.1.orig/doc/Makefile.in cpu-1.4.1/doc/Makefile.in
fi
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
Index: src/plugins/ldap/commandline.c
--- src/plugins/ldap/commandline.c.orig 2004-01-12 06:31:02 +0100
+++ src/plugins/ldap/commandline.c 2005-10-10 23:40:07 +0200
@@ -83,7 +83,7 @@
if (passent == NULL)
return -1;
bzero (passent, sizeof (struct cpass));
- (int) passent->sp_lstchg = passent->sp_min = passent->sp_max = -10;
+ passent->sp_lstchg = passent->sp_min = passent->sp_max = -10;
passent->sp_warn = passent->sp_inact = passent->sp_expire = -10;
passent->sp_flag = -10;
passent->pw_gid = -10;
Index: src/plugins/ldap/ld.c
--- src/plugins/ldap/ld.c.orig 2004-01-12 05:47:37 +0100
+++ src/plugins/ldap/ld.c 2005-10-10 23:45:34 +0200
@@ -803,7 +803,8 @@
return -10;
if (gid != NULL)
{
- gid = ldap_get_values (ld, pos, gid)[0];
+ temp = ldap_get_values (ld, pos, gid);
+ gid = (char *)temp[0];
if (gid != NULL)
return atoi (gid);
else

2
cpu/cpu.spec

@ -37,7 +37,7 @@ Class: PLUS
Group: Converter
License: GPL
Version: %{V_real}
Release: 20040628
Release: 20051011
# package options
%option with_crack no

Loading…
Cancel
Save