~ubuntu-branches/ubuntu/utopic/xfsprogs/utopic-proposed

« back to all changes in this revision

Viewing changes to quota/quot.c

  • Committer: Bazaar Package Importer
  • Author(s): Nathan Scott
  • Date: 2009-05-06 11:29:18 UTC
  • mfrom: (8.1.1 jaunty)
  • Revision ID: james.westby@ubuntu.com-20090506112918-uzoyzcp90rtr8td7
Tags: 3.0.2
New bugfix release

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
                for (dp = *hp; dp; dp = dp->next)
108
108
                        if (dp->id == id)
109
109
                                break;
110
 
                if (dp == 0) {
 
110
                if (dp == NULL) {
111
111
                        if (ndu[i] >= NDU)
112
112
                                return;
113
113
                        dp = &du[i][(ndu[i]++)];
153
153
        overflow = 0;
154
154
        for (i = 0; i < 3; i++)
155
155
                for (dp = duhash[i]; dp < &duhash[i][DUHASH]; dp++)
156
 
                        *dp = 0;
 
156
                        *dp = NULL;
157
157
        ndu[0] = ndu[1] = ndu[2] = 0;
158
158
 
159
159
        fsfd = open(fsdir, O_RDONLY);
275
275
        fs_cursor_t     cursor;
276
276
        fs_path_t       *mount;
277
277
 
278
 
        now = time(0);
 
278
        now = time(NULL);
279
279
        fs_cursor_initialise(dir, FS_MOUNT_POINT, &cursor);
280
280
        while ((mount = fs_cursor_next_entry(&cursor))) {
281
281
                quot_bulkstat_mount(mount->fs_dir, flags);