git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@330 77e5149b-7576-45b1-b177-96237e5ba77b
Thomas Lamy authored on 2004/02/24 05:23:03... | ... |
@@ -222,8 +222,8 @@ int freshclam(struct optstruct *opt) |
222 | 222 |
|
223 | 223 |
bigsleep = 24 * 3600 / checks; |
224 | 224 |
daemonize(); |
225 |
- if (optl(opt, "pid")) { |
|
226 |
- pidfile = getargl(opt, "pid"); |
|
225 |
+ if (optc(opt, 'p')) { |
|
226 |
+ pidfile = getargc(opt, 'p'); |
|
227 | 227 |
} else if (cpt = cfgopt(copt, "PidFile")) { |
228 | 228 |
pidfile = cpt->strarg; |
229 | 229 |
} |