diff options
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-11-19 06:45:18 +0000 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-11-19 06:45:18 +0000 |
commit | caa8bd6423e2d0d1b4e72c150e80b9c6a9e1b7fe (patch) | |
tree | 118fd80cc8ba27ef695a8e8ce409e5d70f4fa451 /lib/parse_ini.c | |
parent | 16f53e0717b60660145388b0feb351628f606211 (diff) | |
download | monitoring-plugins-caa8bd6423e2d0d1b4e72c150e80b9c6a9e1b7fe.tar.gz |
Bulk EOL cleanup
$ git diff --ignore-space-change|diffstat
0 files changed
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2087 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'lib/parse_ini.c')
-rw-r--r-- | lib/parse_ini.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/parse_ini.c b/lib/parse_ini.c index 57321753..c19952db 100644 --- a/lib/parse_ini.c +++ b/lib/parse_ini.c | |||
@@ -82,7 +82,7 @@ static void parse_locator(const char *locator, const char *def_stanza, np_ini_in | |||
82 | } else { | 82 | } else { |
83 | i->file=strdup(&(locator[stanza_len+1])); | 83 | i->file=strdup(&(locator[stanza_len+1])); |
84 | } | 84 | } |
85 | 85 | ||
86 | if(i->file==NULL || i->stanza==NULL){ | 86 | if(i->file==NULL || i->stanza==NULL){ |
87 | die(STATE_UNKNOWN, _("malloc() failed!\n")); | 87 | die(STATE_UNKNOWN, _("malloc() failed!\n")); |
88 | } | 88 | } |
@@ -110,7 +110,7 @@ np_arg_list* np_get_defaults(const char *locator, const char *default_section){ | |||
110 | if(inifile!=stdin) fclose(inifile); | 110 | if(inifile!=stdin) fclose(inifile); |
111 | } | 111 | } |
112 | free(i.stanza); | 112 | free(i.stanza); |
113 | return defaults; | 113 | return defaults; |
114 | } | 114 | } |
115 | 115 | ||
116 | /* read_defaults is where the meat of the parsing takes place. | 116 | /* read_defaults is where the meat of the parsing takes place. |
@@ -161,7 +161,7 @@ static int read_defaults(FILE *f, const char *stanza, np_arg_list **opts){ | |||
161 | default: | 161 | default: |
162 | switch(stanzastate){ | 162 | switch(stanzastate){ |
163 | /* we never found the start of the first stanza, so | 163 | /* we never found the start of the first stanza, so |
164 | * we're dealing with a config error | 164 | * we're dealing with a config error |
165 | */ | 165 | */ |
166 | case NOSTANZA: | 166 | case NOSTANZA: |
167 | die(STATE_UNKNOWN, _("Config file error")); | 167 | die(STATE_UNKNOWN, _("Config file error")); |