オープンソース・ソフトウェアの開発とダウンロード

Subversion リポジトリの参照

Diff of /trunk/1.7.x/ccs-patch/security/ccsecurity/util.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2871 by kumaneko, Sat Aug 8 08:03:30 2009 UTC revision 2888 by kumaneko, Mon Aug 10 07:31:29 2009 UTC
# Line 122  void ccs_print_ulong(char *buffer, const Line 122  void ccs_print_ulong(char *buffer, const
122                  snprintf(buffer, buffer_len, "type(%u)", type);                  snprintf(buffer, buffer_len, "type(%u)", type);
123  }  }
124    
125  bool ccs_parse_number_union(char *data, union ccs_number_union *num)  bool ccs_parse_number_union(char *data, struct ccs_number_union *num)
126  {  {
127          u8 type;          u8 type;
128          unsigned long v;          unsigned long v;
# Line 130  bool ccs_parse_number_union(char *data, Line 130  bool ccs_parse_number_union(char *data,
130          type = ccs_parse_ulong(&v, &data);          type = ccs_parse_ulong(&v, &data);
131          if (!type)          if (!type)
132                  return false;                  return false;
133          num->value.min = v;          num->values[0] = v;
134          num->value.min_type = type;          num->min_type = type;
135          if (!*data) {          if (!*data) {
136                  num->value.max = v;                  num->values[1] = v;
137                  num->value.max_type = type;                  num->max_type = type;
138                  return true;                  return true;
139          }          }
140          if (*data++ != '-')          if (*data++ != '-')
# Line 142  bool ccs_parse_number_union(char *data, Line 142  bool ccs_parse_number_union(char *data,
142          type = ccs_parse_ulong(&v, &data);          type = ccs_parse_ulong(&v, &data);
143          if (!type || *data)          if (!type || *data)
144                  return false;                  return false;
145          num->value.max = v;          num->values[1] = v;
146          num->value.max_type = type;          num->max_type = type;
147          return true;          return true;
148  }  }
149    

Legend:
Removed from v.2871  
changed lines
  Added in v.2888

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26