mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-10-03 15:29:29 +00:00
Remove unused function (#126)
A recent commit removed the declaration for this function in swupd.h, and now the compiler warns about it being unused, so the function can be removed entirely now. Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
This commit is contained in:
committed by
Auke Kok
parent
0864fb0120
commit
02bc9da566
@@ -127,17 +127,6 @@ void unlink_all_staged_content(struct file *file)
|
||||
}
|
||||
}
|
||||
|
||||
static FILE *fopen_exclusive(const char *filename) /* no mode, opens for write only */
|
||||
{
|
||||
int fd;
|
||||
|
||||
fd = open(filename, O_CREAT | O_EXCL | O_RDWR, 00600);
|
||||
if (fd < 0) {
|
||||
return NULL;
|
||||
}
|
||||
return fdopen(fd, "w");
|
||||
}
|
||||
|
||||
static int create_required_dirs(void)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
Reference in New Issue
Block a user