Commit 750d258037baa24f21b20a7866e773127c683f17
- Date: Fri Apr 18 07:28:01 +0000 2008
- Committer: Dustin Sallings (dustin@spy.net)
- Author: Dustin Sallings (dustin@spy.net)
- Commit SHA1: 750d258037baa24f21b20a7866e773127c683f17
- Tree SHA1: 1e9c4254cd56c01cde99d16201cdfe02d90eb640
If I make an enum, I should use it like one.
Commit diff
| |   |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /* Returns a value from logTypes */ |
| 72 | | static int identifyLog(const char *line) { |
| 73 | | int rv=UNKNOWN; |
| 72 | static enum logType identifyLog(const char *line) { |
| 73 | enum logType rv=UNKNOWN; |
| 74 | 74 | assert(line != NULL); |
| 75 | 75 | |
| 76 | 76 | if(boost::regex_search(line, amazon_s3_regex)) { |
| toggle raw diff |
--- a/logfiles.cpp
+++ b/logfiles.cpp
@@ -69,8 +69,8 @@ static bool myGzgets(struct logfile *lf)
}
/* Returns a value from logTypes */
-static int identifyLog(const char *line) {
- int rv=UNKNOWN;
+static enum logType identifyLog(const char *line) {
+ enum logType rv=UNKNOWN;
assert(line != NULL);
if(boost::regex_search(line, amazon_s3_regex)) { |