Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 649700 | Differences between
and this patch

Collapse All | Expand All

(-)freehdl-0.0.8.orig/kernel/sigacl_list.cc (-1 / +9 lines)
Lines 4-9 Link Here
4
sigacl_list::sigacl_list(int size) {
4
sigacl_list::sigacl_list(int size) {
5
  count = 0;
5
  count = 0;
6
  list = new _items[size];
6
  list = new _items[size];
7
  list_size = size;
7
}
8
}
8
9
9
10
Lines 18-25 Link Here
18
19
19
void
20
void
20
sigacl_list::add(sig_info_base *s, acl *a) {
21
sigacl_list::add(sig_info_base *s, acl *a) {
22
  if (count >= list_size)
23
  {
24
    std::cout << "WARNING: sigacl_list::add()" << "\n" << "list index greater than list length\n" ;
25
    return;
26
  }
27
21
  list[count].signal = s;
28
  list[count].signal = s;
22
  list[count].aclp = a->clone();
29
  if (a != NULL) list[count].aclp = a->clone();
30
  else list[count].aclp = NULL;
23
  count++;
31
  count++;
24
}
32
}
25
33
(-)freehdl-0.0.8.orig/freehdl/kernel-sigacl-list.hh (+3 lines)
Lines 20-25 Link Here
20
  sigacl_list(int size);
20
  sigacl_list(int size);
21
  ~sigacl_list();
21
  ~sigacl_list();
22
  void add(sig_info_base *s, acl *a = NULL);
22
  void add(sig_info_base *s, acl *a = NULL);
23
24
private:
25
  int list_size;
23
};
26
};
24
27
25
28
(-)freehdl-0.0.8.orig/kernel/dump.cc (+2 lines)
Lines 24-29 Link Here
24
  dump_buffer.clean();
24
  dump_buffer.clean();
25
  dump_buffer << dumped_name;
25
  dump_buffer << dumped_name;
26
26
27
  if (a != NULL)
27
  if (!a->end())
28
  if (!a->end())
28
    for (int i = 0; i < a->get_size(); i++)
29
    for (int i = 0; i < a->get_size(); i++)
29
      dump_buffer << "(" << a->get(i) << ")";
30
      dump_buffer << "(" << a->get(i) << ")";
Lines 32-37 Link Here
32
  reader_pointer = s->reader_pointer;
33
  reader_pointer = s->reader_pointer;
33
  type = s->type;
34
  type = s->type;
34
35
36
  if (a != NULL)
35
  if (! a->end()) {
37
  if (! a->end()) {
36
    reader_pointer = s->type->element(s->reader_pointer, a);
38
    reader_pointer = s->type->element(s->reader_pointer, a);
37
    type = s->type->get_info(s->reader_pointer, a);
39
    type = s->type->get_info(s->reader_pointer, a);

Return to bug 649700