summaryrefslogtreecommitdiff
path: root/tools/skrewt.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/skrewt.c')
-rw-r--r--tools/skrewt.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/skrewt.c b/tools/skrewt.c
index 117981b..da0ed64 100644
--- a/tools/skrewt.c
+++ b/tools/skrewt.c
@@ -84,13 +84,11 @@ string toLower(const std::string& a){
string ltrim(string foo){
- unsigned where = foo.find_first_not_of(" \t\r\n");
+ size_t where = foo.find_first_not_of(" \t\r\n");
if (where == foo.npos) return foo;
return foo.substr(where);
}
-
-
int main(int argc, char** argv){
if (argc > 1) {
if (argv[1] == string("-h")) usage(0);
@@ -129,7 +127,7 @@ int main(int argc, char** argv){
else {
string headword;
string rest;
- unsigned int where = header.find(":");
+ size_t where = header.find(":");
if (where != string::npos) {
headword = header.substr(0, where);
rest = ltrim(header.substr(1+where));
@@ -137,7 +135,7 @@ int main(int argc, char** argv){
headword = toLower(headword);
if (headword == "content-type") {
string the_type = rest;
- unsigned int where = the_type.find_first_of(" \t;\n");
+ size_t where = the_type.find_first_of(" \t;\n");
if (where == string::npos) {
/* do nothing */
}
@@ -194,5 +192,6 @@ int main(int argc, char** argv){
cerr << "skrewt rejection: no text" << endl;
exit(1);
}
+ cerr << "skrewt normal completion" << endl;
return 0;
}