bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mismatching declaration of method_names in CVS CVS


From: Pavel Roskin
Subject: Mismatching declaration of method_names in CVS CVS
Date: Tue, 21 Jan 2003 11:12:43 -0500 (EST)

Hello!

The CVS version of CVS doesn't compile (Red Hat 8.0, gcc 3.2) because the
declarations of method_names in root.h and root.c are different:

root.c:19: conflicting types for `method_names'
root.h:23: previous declaration of `method_names'

This patch helps:

============================
--- src/root.h
+++ src/root.h
@@ -20,8 +20,8 @@
     ext_method,
     fork_method
 } CVSmethod;
-extern char *method_names[];   /* change this in root.c if you change
-                                  the enum above */
+extern const char *const method_names[];       /* change this in root.c if you 
change
+                                                  the enum above */

 typedef struct cvsroot_s {
     char *original;            /* the complete source CVSroot string */
============================

-- 
Regards,
Pavel Roskin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]