util warnings
This commit is contained in:
parent
c71791f168
commit
9245ef222a
3 changed files with 4 additions and 4 deletions
|
|
@ -162,7 +162,7 @@ ctx_print(cbuf *cb,
|
||||||
int
|
int
|
||||||
ctx2boolean(xp_ctx *xc)
|
ctx2boolean(xp_ctx *xc)
|
||||||
{
|
{
|
||||||
int b;
|
int b = -1;
|
||||||
switch (xc->xc_type){
|
switch (xc->xc_type){
|
||||||
case XT_NODESET:
|
case XT_NODESET:
|
||||||
b = (xc->xc_size != 0);
|
b = (xc->xc_size != 0);
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ LIBS = @LIBS@
|
||||||
|
|
||||||
CPPFLAGS = @CPPFLAGS@
|
CPPFLAGS = @CPPFLAGS@
|
||||||
|
|
||||||
INCLUDES = -I. @INCLUDES@ -I$(top_srcdir)/lib/clixon -I$(top_srcdir)/include -I$(top_srcdir)
|
INCLUDES = -I. @INCLUDES@ -I$(top_srcdir)/lib -I$(top_srcdir)/include
|
||||||
|
|
||||||
MYLIB = ../lib/src/libclixon$(SH_SUFFIX).$(CLIXON_MAJOR).$(CLIXON_MINOR)
|
MYLIB = ../lib/src/libclixon$(SH_SUFFIX).$(CLIXON_MAJOR).$(CLIXON_MINOR)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ echo "a\n<a><b/></a>" | xpath
|
||||||
#include <cligen/cligen.h>
|
#include <cligen/cligen.h>
|
||||||
|
|
||||||
/* clixon */
|
/* clixon */
|
||||||
#include <clixon/clixon.h>
|
#include "clixon/clixon.h"
|
||||||
|
|
||||||
static int
|
static int
|
||||||
usage(char *argv0)
|
usage(char *argv0)
|
||||||
|
|
@ -128,7 +128,7 @@ main(int argc, char **argv)
|
||||||
char *xpath0 = NULL;
|
char *xpath0 = NULL;
|
||||||
char *filename;
|
char *filename;
|
||||||
xp_ctx *xc = NULL;
|
xp_ctx *xc = NULL;
|
||||||
cbuf *cb;
|
cbuf *cb = NULL;
|
||||||
|
|
||||||
clicon_log_init("xpath", LOG_DEBUG, CLICON_LOG_STDERR);
|
clicon_log_init("xpath", LOG_DEBUG, CLICON_LOG_STDERR);
|
||||||
optind = 1;
|
optind = 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue