diff options
author | Guillem Jover <guillem@debian.org> | 2013-11-22 05:48:12 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2013-12-07 07:43:21 +0100 |
commit | af7b764c5adccd4eb26ae118fd413711ce94edb9 (patch) | |
tree | 7d96e059627e603dd8bb06a6ea3bcb2cbdc2a7ab /src | |
parent | fe8204dc99f5471607176265cd76bf478d7cc2bf (diff) | |
download | dpkg-af7b764c5adccd4eb26ae118fd413711ce94edb9.tar.gz |
dpkg-trigger: Use enum trigdef_update_status instead of int
Use the correct type to catch the trigdef_update_start() return value,
and rename the variable to avoid confusion.
Diffstat (limited to 'src')
-rw-r--r-- | src/trigcmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/trigcmd.c b/src/trigcmd.c index c1cd48b98..917fbcde3 100644 --- a/src/trigcmd.c +++ b/src/trigcmd.c @@ -204,9 +204,9 @@ static const struct cmdinfo cmdinfos[] = { int main(int argc, const char *const *argv) { - int uf; const char *badname; enum trigdef_updateflags tduf; + enum trigdef_update_status tdus; dpkg_locales_init(PACKAGE); dpkg_program_init("dpkg-trigger"); @@ -240,8 +240,8 @@ main(int argc, const char *const *argv) tduf = tduf_nolockok; if (!f_noact) tduf |= tduf_write | tduf_writeifempty; - uf = trigdef_update_start(tduf); - if (uf >= 0) { + tdus = trigdef_update_start(tduf); + if (tdus >= 0) { trigdef_parse(); if (!done_trig) trigdef_update_printf("%s %s\n", activate, bypackage); |