migrated write_chunk() to chunk_write()

This commit is contained in:
Andreas Steffen
2009-04-20 06:58:00 +00:00
parent 4f4ae2f465
commit 3eb5042e9c
8 changed files with 25 additions and 81 deletions
-6
View File
@@ -63,10 +63,6 @@ extern const char* concatenate_paths(const char *a, const char *b);
/* move a chunk to a memory position and free it after insertion */
extern void mv_chunk(u_char **pos, chunk_t content);
/* write the binary contents of a chunk_t to a file */
extern bool write_chunk(const char *filename, const char *label, chunk_t ch
,mode_t mask, bool force);
/* warns a predefined interval before expiry */
extern const char* check_expiry(time_t expiration_date,
int warning_interval, bool strict);
@@ -88,10 +84,8 @@ typedef struct dirent dirent_t;
extern int file_select(const dirent_t *entry);
/* cleanly exit Pluto */
extern void exit_pluto(int /*status*/) NEVER_RETURNS;
/* zero all bytes */
#define zero(x) memset((x), '\0', sizeof(*(x)))