Explorar o código

dpkg: Give names to anonymous public enums inside structs

This will help once we move them out of the structs.
Guillem Jover %!s(int64=12) %!d(string=hai) anos
pai
achega
dc2edadf0b
Modificáronse 2 ficheiros con 4 adicións e 3 borrados
  1. 2 2
      src/filesdb.h
  2. 2 1
      src/main.h

+ 2 - 2
src/filesdb.h

@@ -3,7 +3,7 @@
  * filesdb.h - management of database of files installed on system
  *
  * Copyright © 1995 Ian Jackson <ian@chiark.greenend.org.uk>
- * Copyright © 2008-2012 Guillem Jover <guillem@debian.org>
+ * Copyright © 2008-2014 Guillem Jover <guillem@debian.org>
  *
  * 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. */

+ 2 - 1
src/main.h

@@ -3,6 +3,7 @@
  * main.h - external definitions for this program
  *
  * Copyright © 1995 Ian Jackson <ian@chiark.greenend.org.uk>
+ * Copyright © 2006,2008-2014 Guillem Jover <guillem@debian.org>
  *
  * 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,