fix linker warnings, by not redeclaring static variables with extern.
This commit is contained in:
parent
068f15f206
commit
3329592a7b
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-libical_src_libical_icalderivedparameter_c_in,v 1.1 2003/01/06 02:19:56 espie Exp $
|
||||
--- libical/src/libical/icalderivedparameter.c.in.orig Tue Dec 31 15:02:20 2002
|
||||
+++ libical/src/libical/icalderivedparameter.c.in Tue Dec 31 15:03:04 2002
|
||||
@@ -55,7 +55,7 @@ struct icalparameter_kind_map {
|
||||
|
||||
};
|
||||
|
||||
-extern struct icalparameter_kind_map parameter_map[];
|
||||
+static struct icalparameter_kind_map parameter_map[];
|
||||
|
||||
|
||||
const char* icalparameter_kind_to_string(icalparameter_kind kind)
|
||||
@@ -129,7 +129,7 @@ struct icalparameter_map {
|
||||
};
|
||||
|
||||
|
||||
-extern struct icalparameter_map icalparameter_map[];
|
||||
+static struct icalparameter_map icalparameter_map[];
|
||||
|
||||
|
||||
const char* icalparameter_enum_to_string(int e)
|
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-libical_src_libical_icalderivedproperty_c_in,v 1.1 2003/01/06 02:19:56 espie Exp $
|
||||
--- libical/src/libical/icalderivedproperty.c.in.orig Tue Dec 31 15:03:24 2002
|
||||
+++ libical/src/libical/icalderivedproperty.c.in Tue Dec 31 15:04:08 2002
|
||||
@@ -59,7 +59,7 @@ struct icalproperty_map {
|
||||
|
||||
};
|
||||
|
||||
-extern struct icalproperty_map property_map[];
|
||||
+static struct icalproperty_map property_map[];
|
||||
|
||||
const char* icalproperty_kind_to_string(icalproperty_kind kind)
|
||||
{
|
||||
@@ -139,7 +139,7 @@ struct icalproperty_enum_map {
|
||||
const char* str;
|
||||
};
|
||||
|
||||
-extern struct icalproperty_enum_map enum_map[];
|
||||
+static struct icalproperty_enum_map enum_map[];
|
||||
|
||||
|
||||
const char* icalproperty_enum_to_string(int e)
|
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-libical_src_libical_icalderivedvalue_c_in,v 1.1 2003/01/06 02:19:56 espie Exp $
|
||||
--- libical/src/libical/icalderivedvalue.c.in.orig Tue Dec 31 15:04:41 2002
|
||||
+++ libical/src/libical/icalderivedvalue.c.in Tue Dec 31 15:04:45 2002
|
||||
@@ -60,7 +60,7 @@ struct icalvalue_kind_map {
|
||||
char name[20];
|
||||
};
|
||||
|
||||
-extern struct icalvalue_kind_map value_map[];
|
||||
+static struct icalvalue_kind_map value_map[];
|
||||
|
||||
const char* icalvalue_kind_to_string(icalvalue_kind kind)
|
||||
{
|
Loading…
Reference in New Issue
Block a user