+2007-11-29 Guillem Jover <guillem@debian.org>
+
+ * dpkg-deb/build.c (arbitrary_fields): Define as static.
+ * lib/dbmodify.c (fnis): Likewise.
+ * lib/fields.c (conffvalue_lastword): Likewise.
+ * lib/tarfn.c (StoC): Likewise.
+ * src/packages.c (breaks_check_target): Likewise.
+ * utils/start-stop-daemon.c (siglist): Likewise.
+
2007-11-28 Raphael Hertzog <hertzog@debian.org>
* scripts/dpkg-gensymbols.pl: The environment variable
* The environment variable DPKG_GENSYMBOLS_CHECK_LEVEL can be used to force
dpkg-gensymbols to use a precise level of checks. Closes: #452022
+ [ Guillem Jover ]
+ * Define several private functions and variables as static.
+
-- Guillem Jover <guillem@debian.org> Sat, 24 Nov 2007 07:38:13 +0200
dpkg (1.14.11) unstable; urgency=low
struct _finfo* next;
};
-const char *arbitrary_fields[]= {
+static const char *arbitrary_fields[] = {
"Package-Type",
"Subarchitecture",
"Kernel-Version",
onerr_abort--;
}
-const struct fni { const char *suffix; char **store; } fnis[]= {
+static const struct fni {
+ const char *suffix;
+ char **store;
+} fnis[] = {
{ STATUSFILE, &statusfile },
{ AVAILFILE, &availablefile },
{ UPDATESDIR IMPORTANTTMP, &importanttmpfile },
"in Config-Version string `%.250s': %.250s"),value,emsg);
}
-void conffvalue_lastword(const char *value, const char *from,
- const char *endent,
- const char **word_start_r, int *word_len_r,
- const char **new_from_r,
- const char *filename, int lno,
- FILE *warnto, int *warncount, struct pkginfo *pigp) {
+static void conffvalue_lastword(const char *value, const char *from,
+ const char *endent,
+ const char **word_start_r, int *word_len_r,
+ const char **new_from_r,
+ const char *filename, int lno, FILE *warnto,
+ int *warncount, struct pkginfo *pigp)
+{
/* the code in f_conffiles ensures that value[-1]==' ', which is helpful */
const char *lastspc;
}
/* String block to C null-terminated string */
-char *
+static char *
StoC(const char *s, int size)
{
int len;
*ok= 0;
}
-void breaks_check_target(struct varbuf *aemsgs, int *ok,
- struct pkginfo *broken,
- struct pkginfo *target,
- struct pkginfo *virtbroken) {
+static void breaks_check_target(struct varbuf *aemsgs, int *ok,
+ struct pkginfo *broken,
+ struct pkginfo *target,
+ struct pkginfo *virtbroken) {
struct deppossi *possi;
for (possi= target->installed.depended; possi; possi= possi->nextrev) {
int signal;
};
-const struct sigpair siglist[] = {
+static const struct sigpair siglist[] = {
{ "ABRT", SIGABRT },
{ "ALRM", SIGALRM },
{ "FPE", SIGFPE },