"Failed to create tmp_buf\n");\
break;\
}\
- size = GNUNET_snprintf(tmp_buf,sizeof(tmp_buf),"%s \n", tmp_buf);\
- if (0 > size)\
- {\
- GNUNET_log (GNUNET_ERROR_TYPE_WARNING,\
- "Failed to create tmp_buf\n");\
- break;\
- }\
+ (void) strncat(tmp_buf,"\n",512);\
GNUNET_DISK_file_write (get_file_handle (file_name),\
tmp_buf,\
strnlen (tmp_buf, 512));\
"Failed to create tmp_buf\n");\
break;\
}\
- size = GNUNET_snprintf(tmp_buf,sizeof(tmp_buf),"%s\n", tmp_buf);\
- if (0 > size)\
- {\
- GNUNET_log (GNUNET_ERROR_TYPE_WARNING,\
- "Failed to create tmp_buf\n");\
- break;\
- }\
+ (void) strncat(tmp_buf,"\n",len);\
GNUNET_DISK_file_write (get_file_handle (file_name),\
tmp_buf,\
strnlen (tmp_buf, len));\
#endif /* TO_FILE */
char *
-store_prefix_file_name (const struct GNUNET_PeerIdentity *peer,
+store_prefix_file_name (const unsigned int index,
const char *prefix);
void