Skip to contentSkip to conversation

Enable use new multi-segment registration for static segments too.

PATCH New Milan Broz 2 participants 2 messages Jul 14, 2009

lore
Share & tools
lore

Milan Broz

author
#0 lore raw

PATCH 1/1 Enable use new multi-segment registration for static segments too.

Enable use new multi-segment registration for static segments.

so it allows adding code like:

#ifdef MYNEWSEG_INTERNAL
	if (!init_mynewseg_segtypes(&seglib))
			return 0;

#endif

---
 lib/commands/toolcontext.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/commands/toolcontext.c +1 -1
index 7658c47..76802ab 100644
@@ -855,10 +855,10 @@ static int _init_single_segtype(struct segtype_library *seglib)
 static int _init_segtypes(struct cmd_context *cmd)
 {
 	struct segment_type *segtype;
+	struct segtype_library seglib = { .cmd = cmd };
 
 #ifdef HAVE_LIBDL
 	const struct config_node *cn;
-	struct segtype_library seglib;
 #endif
 
 	if (!(segtype = init_striped_segtype(cmd)))
#1 lore raw

PATCH 1/1 Enable use new multi-segment registration for static segments too.

Quoted 1 line · Milan Broz

Enable use new multi-segment registration for static segments.

Ack.

Alasdair