Explorar el Código

libdpkg: Make virtinfos a static variable

Warned-by: clang
Guillem Jover hace 11 años
padre
commit
ae736c6f93
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/dpkg/pkg-format.c

+ 1 - 1
lib/dpkg/pkg-format.c

@@ -326,7 +326,7 @@ virt_source_version(struct varbuf *vb,
 	}
 	}
 }
 }
 
 
-const struct fieldinfo virtinfos[] = {
+static const struct fieldinfo virtinfos[] = {
 	{ FIELD("binary:Package"), NULL, virt_package },
 	{ FIELD("binary:Package"), NULL, virt_package },
 	{ FIELD("binary:Summary"), NULL, virt_summary },
 	{ FIELD("binary:Summary"), NULL, virt_summary },
 	{ FIELD("db:Status-Abbrev"), NULL, virt_status_abbrev },
 	{ FIELD("db:Status-Abbrev"), NULL, virt_status_abbrev },