[nagiosplug] check_http: Fix whitespace issues
"Nagios Plugin Development" <[email protected]> Wed, 18 Jul 2012 21:50:49 +0000
| Newsgroups | gmane.network.nagios.plugins.cvs |
|---|---|
| Message-ID | <[email protected]> |
Module: nagiosplug Branch: master Commit: 3c10d84ea21c91c4f14cb241f5c7f24e4536476a Author: Holger Weiss <[email protected]> Date: Wed Jul 18 23:39:05 2012 +0200 URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=3c10d84 check_http: Fix whitespace issues In check_http.c, tabs aren't used for indentation. --- plugins/check_http.c | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/plugins/check_http.c b/plugins/check_http.c index 37cf01a..5c8a80c 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c @@ -284,18 +284,18 @@ process_arguments (int argc, char **argv) case 'C': /* Check SSL cert validity */ #ifdef HAVE_SSL if ((temp=strchr(optarg,','))!=NULL) { - *temp='\0'; - if (!is_intnonneg (temp)) - usage2 (_("Invalid certificate expiration period"), optarg); - days_till_exp_warn = atoi(optarg); - *temp=','; - temp++; - if (!is_intnonneg (temp)) - usage2 (_("Invalid certificate expiration period"), temp); - days_till_exp_crit = atoi (temp); + *temp='\0'; + if (!is_intnonneg (temp)) + usage2 (_("Invalid certificate expiration period"), optarg); + days_till_exp_warn = atoi(optarg); + *temp=','; + temp++; + if (!is_intnonneg (temp)) + usage2 (_("Invalid certificate expiration period"), temp); + days_till_exp_crit = atoi (temp); } else { - days_till_exp_crit=0; + days_till_exp_crit=0; if (!is_intnonneg (optarg)) usage2 (_("Invalid certificate expiration period"), optarg); days_till_exp_warn = atoi (optarg); ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/