cfg = c;
config_file = cfgfile;
if (GNUNET_CONFIGURATION_get_value_string(cfg, "PATHS", "SERVICEHOME", &dir) != GNUNET_OK)
- {
- dir = NULL;
- }
-
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ _("Fatal configuration error: `%s' option in section `%s' missing.\n"),
+ "SERVICEHOME",
+ "PATHS");
+ return;
+ }
h = GNUNET_ARM_connect (cfg, sched, NULL);
if (h == NULL)
{
sched = s;
/* check arguments */
+ if ((uri_string != NULL) && (extract_only))
+ {
+ printf (_("Cannot extract metadata from a URI!\n"));
+ ret = -1;
+ return;
+ }
if ( ( (uri_string == NULL) || (extract_only) )
&& ( (args[0] == NULL) || (args[1] != NULL) ) )
{
ret = -1;
return;
}
- if ((uri_string != NULL) && (extract_only))
- {
- printf (_("Cannot extract metadata from a URI!\n"));
- ret = -1;
- return;
- }
if (pseudonym != NULL)
{
if (NULL == this_id)
return;
}
}
- if ( (args[0] == NULL) &&
- (uri_string == NULL) )
- {
- fprintf (stderr,
- _("Need the name of a file to publish!\n"));
- ret = 1;
- return;
- }
cfg = c;
ctx = GNUNET_FS_start (sched,
cfg,
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Destroy actually runs (%p)!\n", sock);
#endif
- if (sock->dns_active != NULL)
- {
- GNUNET_RESOLVER_request_cancel (sock->dns_active);
- sock->dns_active = NULL;
- }
while (NULL != (pos = sock->ap_head))
{
GNUNET_break (GNUNET_OK == GNUNET_NETWORK_socket_close (pos->sock));
GNUNET_OS_set_process_priority (pid_t proc,
enum GNUNET_SCHEDULER_Priority prio)
{
- int rprio = 0;
+ int rprio;
GNUNET_assert (prio < GNUNET_SCHEDULER_PRIORITY_COUNT);
if (prio == GNUNET_SCHEDULER_PRIORITY_KEEP)