removed some harmless compiler warnings
authorvenaas <venaas>
Tue, 10 Jun 2008 11:11:54 +0000 (11:11 +0000)
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>
Tue, 10 Jun 2008 11:11:54 +0000 (11:11 +0000)
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@289 e88ac4ed-0b26-0410-9574-a7f39faa03bf

gconfig.c
radsecproxy.c
util.c

index b43f157..b780e8b 100644 (file)
--- a/gconfig.c
+++ b/gconfig.c
@@ -354,7 +354,7 @@ int getconfigline(struct gconffile **cf, char *block, char **opt, char **val, in
 int getgenericconfig(struct gconffile **cf, char *block, ...) {
     va_list ap;
     char *opt = NULL, *val, *word, *optval, **str = NULL, ***mstr = NULL, **newmstr;
-    uint8_t *bln;
+    uint8_t *bln = NULL;
     int type = 0, conftype = 0, n;
     int (*cbk)(struct gconffile **, void *, char *, char *, char *) = NULL;
     void *cbkarg = NULL;
index 6100bb1..b29ce28 100644 (file)
@@ -2786,7 +2786,7 @@ struct list *addsrvconfs(char *value, char **names) {
     struct list *conflist;
     int n;
     struct list_node *entry;
-    struct clsrvconf *conf;
+    struct clsrvconf *conf = NULL;
     
     if (!names || !*names)
        return NULL;
diff --git a/util.c b/util.c
index a9ccdde..d551cf0 100644 (file)
--- a/util.c
+++ b/util.c
@@ -100,7 +100,7 @@ char *addr2string(struct sockaddr *addr, socklen_t len) {
 
 int connectport(int type, char *host, char *port) {
     struct addrinfo hints, *res0, *res;
-    int s;
+    int s = -1;
     
     memset(&hints, 0, sizeof(hints));
     hints.ai_socktype = type;