Package: module-init-tools
Version: 3.3-pre4-2
Severity: wishlist
Tags: patch

The source fail to build with an ANSI C 89 compiler, because variables
are defined after a statement in one place of the code.  This patch
solve the problem.  Please include it to make the source easier to
build in sub-optimal environments.

developer:/usr/src/module-init-tools-3.3-pre4# cat debian/patches/ansi-c-89
--- a/depmod.c.orig     Tue Mar 20 13:15:59 2007
+++ b/depmod.c  Tue Mar 20 13:16:36 2007
@@ -950,10 +950,10 @@
                        while ((search_path = strsep_skipspace(&ptr, "\t ")))
                                *search = add_search(search_path, *search);
                } else if (strcmp(cmd, "override") == 0) {
-                       char *pathname = NULL;
+                       char *pathname = NULL, *version, *subdir;
                        modname = strsep_skipspace(&ptr, "\t ");
-                       char * version = strsep_skipspace(&ptr, "\t ");
-                       char * subdir = strsep_skipspace(&ptr, "\t ");
+                       version = strsep_skipspace(&ptr, "\t ");
+                       subdir = strsep_skipspace(&ptr, "\t ");
 
                        pathname = NOFAIL(malloc(strlen(basedir)
                                               + strlen(MODULE_DIR)
developer:/usr/src/module-init-tools-3.3-pre4#

Friendly,
-- 
Petter Reinholdtsen


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to