~ubuntu-branches/debian/sid/trinity/sid

« back to all changes in this revision

Viewing changes to devices.c

  • Committer: Package Import Robot
  • Author(s): gustavo panizzo
  • Date: 2014-01-17 21:10:15 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140117211015-k2qbnpu0osa5mlil
Tags: 1.3-1
* New upstream version 1.3.
* Removed wrong dependency on linux-headers. (Closes: #733771).

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
 
49
49
                        if (block) {
50
50
                                new = realloc(block_devs, (bldevs+1)*sizeof(*block_devs));
51
 
                                if (!new) {
 
51
                                if (!new) {     // FIXME: We should propagate failure up here.
52
52
                                        free(name);
53
 
                                        continue;
 
53
                                        break;
54
54
                                }
55
55
                                block_devs = new;
56
56
                                block_devs[bldevs].major = major;
61
61
                                new = realloc(char_devs, (chrdevs+1)*sizeof(*char_devs));
62
62
                                if (!new) {
63
63
                                        free(name);
64
 
                                        continue;
 
64
                                        break;
65
65
                                }
66
66
                                char_devs = new;
67
67
                                char_devs[chrdevs].major = major;
91
91
                new = realloc(misc_devs, (miscdevs+1)*sizeof(*misc_devs));
92
92
                if (!new) {
93
93
                        free(name);
94
 
                        continue;
 
94
                        break;
95
95
                }
96
96
                misc_devs = new;
97
97
                misc_devs[miscdevs].major = 0;