]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Use more warnings. Fix warnings.
authorSimon Josefsson <simon@josefsson.org>
Wed, 12 Nov 2008 16:13:55 +0000 (17:13 +0100)
committerSimon Josefsson <simon@josefsson.org>
Wed, 12 Nov 2008 16:13:55 +0000 (17:13 +0100)
src/Makefile.am
src/certtool-cfg.h
src/certtool-gaa.c

index 32cb159fc4358cca45471e34be24ab38f693dffd..228d31d3e6fb9848091a260a43a7ed6b20332cad 100644 (file)
@@ -22,6 +22,7 @@ EXTRA_DIST = README README.srptool
 SUBDIRS = cfg
 
 AM_CPPFLAGS = \
+       $(WARN_CFLAGS)                          \
        -I$(srcdir)/../gl                       \
        -I$(builddir)/../gl                     \
        -I$(builddir)/../lib/includes           \
index a3039acb9bd0885e73574ba8de3f1b0235fc54d7..b4deb1eb3d31395a0a75aea9407ffd8b4b97c6d1 100644 (file)
@@ -25,6 +25,7 @@ void get_cn_crt_set (gnutls_x509_crt_t crt);
 void get_uid_crt_set (gnutls_x509_crt_t crt);
 void get_pkcs9_email_crt_set (gnutls_x509_crt_t crt);
 void get_oid_crt_set (gnutls_x509_crt_t crt);
+void get_key_purpose_set (gnutls_x509_crt_t crt);
 int get_serial (void);
 int get_days (void);
 int get_ca_status (void);
index ffb9d630ec507a1b4bda4fd878fe4bfcf3a49742..6accc09274c6ea0219a40847bffd2375a7e2db0a 100644 (file)
@@ -495,31 +495,12 @@ static int gaa_getint(char *arg)
     return tmp;
 }
 
-static char gaa_getchar(char *arg)
-{
-    if(strlen(arg) != 1)
-    {
-        printf("Option %s: '%s' isn't an character\n", gaa_current_option, arg);
-        GAAERROR(-1);
-    }
-    return arg[0];
-}
 
 static char* gaa_getstr(char *arg)
 {
     return arg;
 }
-static float gaa_getfloat(char *arg)
-{
-    float tmp;
-    char a;
-    if(sscanf(arg, "%f%c", &tmp, &a) < 1)
-    {
-        printf("Option %s: '%s' isn't a float number\n", gaa_current_option, arg);
-        GAAERROR(-1);
-    }
-    return tmp;
-}
+
 /* option structures */
 
 struct GAAOPTION_debug 
@@ -1309,7 +1290,7 @@ static int gaa_internal_get_next_str(FILE *file, gaa_str_node *tmp_str, int argc
 
         len++;
         a = fgetc( file);
-        if(a==EOF) return 0; //a = ' ';
+        if(a==EOF) return 0; /* a = ' '; */
     }
 
     len += 1;