more FS coding
[oweals/gnunet.git] / src / fs / fs_uri.c
index 7959c37af47bdf233617dc755aa81e55c4cc1460..1c0686ed99d65b88f278893466c566615d99b5ac 100644 (file)
@@ -492,7 +492,6 @@ enc2bin (const char *input, void *data, size_t size)
   bits = 0;
   hbits = 0;
   len = 0;
-  pos = 0;
   for (pos = 0; pos < size; pos++)
     {
       while (hbits < 8)
@@ -1195,7 +1194,7 @@ GNUNET_FS_uri_ksk_create_from_args (unsigned int argc,
   emsg = NULL;
   if ( (argc == 1) &&
        (strlen(argv[0]) > strlen(GNUNET_FS_URI_PREFIX)) &&
-       (strncmp(argv[0], GNUNET_FS_URI_PREFIX, strlen(GNUNET_FS_URI_PREFIX)) ) &&
+       (0 == strncmp(argv[0], GNUNET_FS_URI_PREFIX, strlen(GNUNET_FS_URI_PREFIX)) ) &&
        (NULL != (uri = GNUNET_FS_uri_parse(argv[0], &emsg)) ) )
     return uri;
   GNUNET_free_non_null (emsg);
@@ -1482,7 +1481,9 @@ gather_uri_data (void *cls,
  * Construct a keyword-URI from meta-data (take all entries
  * in the meta-data and construct one large keyword URI
  * that lists all keywords that can be found in the meta-data).
- * @deprecated
+ *
+ * @param md metadata to use
+ * @return NULL on error, otherwise a KSK URI
  */
 struct GNUNET_FS_Uri *
 GNUNET_FS_uri_ksk_create_from_meta_data (const struct GNUNET_CONTAINER_MetaData *md)