From dc2edadf0bcb624eafbcd16c92aae7691180f7a4 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Mon, 2 Jun 2014 14:48:12 +0200 Subject: dpkg: Give names to anonymous public enums inside structs This will help once we move them out of the structs. --- src/filesdb.h | 4 ++-- src/main.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/filesdb.h b/src/filesdb.h index 6be7d8938..80f102ec5 100644 --- a/src/filesdb.h +++ b/src/filesdb.h @@ -3,7 +3,7 @@ * filesdb.h - management of database of files installed on system * * Copyright © 1995 Ian Jackson - * Copyright © 2008-2012 Guillem Jover + * Copyright © 2008-2014 Guillem Jover * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -75,7 +75,7 @@ struct filenamenode { */ /** Set to zero when a new node is created. */ - enum { + enum filenamenode_flags { /** In the newconffiles list. */ fnnf_new_conff = DPKG_BIT(0), /** In the new filesystem archive. */ diff --git a/src/main.h b/src/main.h index 503d70a40..53f16f529 100644 --- a/src/main.h +++ b/src/main.h @@ -3,6 +3,7 @@ * main.h - external definitions for this program * * Copyright © 1995 Ian Jackson + * Copyright © 2006,2008-2014 Guillem Jover * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -34,7 +35,7 @@ struct perpackagestate { } istobe; /** Used during cycle detection. */ - enum { + enum pkg_cycle_color { white, gray, black, -- cgit v1.2.3