~ubuntu-branches/ubuntu/oneiric/ebtables/oneiric

« back to all changes in this revision

Viewing changes to communication.c

  • Committer: Bazaar Package Importer
  • Author(s): Jochen Friedrich
  • Date: 2010-05-07 16:50:04 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20100507165004-r1chmd9v22r6uj3t
Tags: 2.0.9.2-1
* New upstream release
* Refresh patches
* Switch to dpkg-source 3.0 (quilt) format
* Bump Standards version to 3.8.4
* Added homepage tag

Show diffs side-by-side

added added

removed removed

Lines of Context:
189
189
        int size;
190
190
        int fd;
191
191
 
192
 
        /* Start from an empty file with right priviliges */
193
 
        if (!(fd = creat(filename, 0600))) {
 
192
        /* Start from an empty file with the correct priviliges */
 
193
        if ((fd = creat(filename, 0600)) == -1) {
194
194
                ebt_print_error("Couldn't create file %s", filename);
195
195
                return;
196
196
        }
303
303
        new = newcounters;
304
304
        while (cc != u_repl->cc) {
305
305
                if (!next || next == entries->entries) {
306
 
                        while (chainnr < u_repl->num_chains && (!(entries = u_repl->chains[chainnr++]) ||
307
 
                               (next = entries->entries->next) == entries->entries));
 
306
                        while (chainnr < u_repl->num_chains && (!(entries = u_repl->chains[chainnr]) ||
 
307
                               (next = entries->entries->next) == entries->entries))
 
308
                                chainnr++;
308
309
                        if (chainnr == u_repl->num_chains)
309
310
                                break;
310
311
                }