diff options
author | Rob Crittenden <rcritten@redhat.com> | 2015-10-02 15:34:36 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2015-10-02 16:51:57 -0400 |
commit | 44409398b2bb63a092e16db686f4ddcd2cd88554 (patch) | |
tree | 5fa20ddef0200b7fd4262d474791256f2173107e /nss_util.c | |
parent | 242f32c7f567dcd2ee35f46c07c9ecf2adf954f6 (diff) | |
download | mod_nss-44409398b2bb63a092e16db686f4ddcd2cd88554.tar.gz mod_nss-44409398b2bb63a092e16db686f4ddcd2cd88554.tar.xz mod_nss-44409398b2bb63a092e16db686f4ddcd2cd88554.zip |
Cleanup to remove a slew of trailing whitespace
Diffstat (limited to 'nss_util.c')
-rw-r--r-- | nss_util.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -50,12 +50,12 @@ apr_file_t *nss_util_ppopen(server_rec *s, apr_pool_t *p, const char *cmd, apr_procattr_t *procattr; apr_proc_t *proc; - if (apr_procattr_create(&procattr, p) != APR_SUCCESS) + if (apr_procattr_create(&procattr, p) != APR_SUCCESS) return NULL; - if (apr_procattr_io_set(procattr, APR_FULL_BLOCK, APR_FULL_BLOCK, + if (apr_procattr_io_set(procattr, APR_FULL_BLOCK, APR_FULL_BLOCK, APR_FULL_BLOCK) != APR_SUCCESS) return NULL; - if (apr_procattr_dir_set(procattr, + if (apr_procattr_dir_set(procattr, ap_make_dirstr_parent(p, cmd)) != APR_SUCCESS) return NULL; if (apr_procattr_cmdtype_set(procattr, APR_PROGRAM) != APR_SUCCESS) @@ -129,11 +129,11 @@ char *searchHashVhostbyNick_match(char *vhost_id) for (hi = apr_hash_first(NULL, ht); hi; hi = apr_hash_next(hi)) { const char *k = NULL; const char *v = NULL; - + apr_hash_this(hi, (const void**)&k, NULL, (void**)&v); if (!ap_strcasecmp_match(vhost_id, k)) { searchValReg = apr_hash_get(ht, k, APR_HASH_KEY_STRING); - return searchValReg; + return searchValReg; } } return NULL; @@ -143,9 +143,9 @@ void addHashVhostNick(char *vhost_id, char *nickname) { if (ht == NULL) { initializeHashVhostNick(); } - + if (searchHashVhostbyNick(vhost_id) == NULL) { - apr_hash_set(ht, apr_pstrdup(mp, vhost_id), APR_HASH_KEY_STRING, + apr_hash_set(ht, apr_pstrdup(mp, vhost_id), APR_HASH_KEY_STRING, apr_pstrdup(mp, nickname)); } } |