socsvn commit: r254446 - soc2013/mattbw/backend
mattbw at FreeBSD.org
mattbw at FreeBSD.org
Tue Jul 9 05:39:11 UTC 2013
Author: mattbw
Date: Tue Jul 9 05:39:10 2013
New Revision: 254446
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=254446
Log:
even more static analysis cleanup
Modified:
soc2013/mattbw/backend/groups.c
Modified: soc2013/mattbw/backend/groups.c
==============================================================================
--- soc2013/mattbw/backend/groups.c Tue Jul 9 05:35:36 2013 (r254445)
+++ soc2013/mattbw/backend/groups.c Tue Jul 9 05:39:10 2013 (r254446)
@@ -27,10 +27,10 @@
#include "groups.h" /* prototypes */
#include "mappings.h" /* mapping macros */
-const char ORIGIN_SEPARATOR = '/';
+static const char ORIGIN_SEPARATOR = '/';
struct group_mapping {
- const char *key;
+ const char /* @null@ */ *key;
PkGroupEnum group;
};
@@ -131,10 +131,10 @@
/* Maps from port/origin directories to PackageKit groups. */
PkGroupEnum
-group_from_port_dir(const char *port_dir)
+group_from_port_dir( /* @null@ */ const char *port_dir)
{
struct group_mapping *result;
-
+
MAPPING_FIND(port_dir, &result, group_mappings);
return result->group;
}
More information about the svn-soc-all
mailing list