Commit 0961cf488d13f3696305a3355e02e4b7b7adb6d9

aqpkg: fix compile error due to const-incorrectness
  
116116 exit(1);
117117}
118118
119const char *parseversion(struct versionrevision *rversion, const char *string)
119const char *parseversion(struct versionrevision *rversion, const char *str)
120120{
121 char *hyphen, *colon, *eepochcolon;
121 char *hyphen, *colon, *eepochcolon, *string;
122122 unsigned long epoch;
123123
124 if ( !*string )
124 if ( !*str )
125125 return QObject::tr( "Version string is empty." );
126126
127 string = strdup(str);
127128 colon= strchr(string,':');
128129 if (colon) {
129130 epoch= strtoul(string,&eepochcolon,10);
130 if ( colon != eepochcolon )
131 if ( colon != eepochcolon ) {
132 free(string);
131133 return QObject::tr( "Epoch in version is not number." );
132 if ( !*++colon )
134 }
135 if ( !*++colon ) {
136 free(string);
133137 return QObject::tr( "Nothing after colon in version number." );
138 }
134139 string= colon;
135140 rversion->epoch= epoch;
136141 } else {
167167 rversion->revision,
168168 rversion->familiar_revision);
169169*/
170 free(string);
170171 return 0;
171172}
172173