2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-09-01 14:55:10 +00:00

Fix many compile-time warnings.

Start replacing RPM with lsb-release.
Drop old references to CVE.
Remove unused code.
This commit is contained in:
Kees Cook
2010-07-26 09:22:45 -07:00
parent a92f9e67b3
commit 624aee531a
8 changed files with 21 additions and 60 deletions

View File

@@ -816,7 +816,7 @@ int sd_serialize_top_profile(sd_serialize *p, struct codomain *profile)
int cache_fd = -1;
int sd_serialize_codomain(int option, struct codomain *cod)
{
int fd;
int fd = -1;
int error = -ENOMEM, size, wsize;
sd_serialize *work_area;
char *filename = NULL;
@@ -984,7 +984,7 @@ static char *next_profile_buffer(char *buffer, int size)
int sd_load_buffer(int option, char *buffer, int size)
{
int fd;
int fd = -1;
int error = -ENOMEM, wsize, bsize;
char *filename = NULL;
char *b;