diff options
author | Werner Koch <[email protected]> | 2012-09-25 13:29:49 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2012-09-25 13:29:49 +0000 |
commit | 139e798c8782b09460052a453142addf1174d878 (patch) | |
tree | 3cc8f7a11668a51aba7b9a69be5178fb6f8aba34 /src/dirinfo.c | |
parent | Add two recent contributors. (diff) | |
download | gpgme-139e798c8782b09460052a453142addf1174d878.tar.gz gpgme-139e798c8782b09460052a453142addf1174d878.zip |
Remove all trailing whitespace from source files
--
Command used: sed -i 's,[ \t]*$,,' FILE
Diffstat (limited to '')
-rw-r--r-- | src/dirinfo.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/dirinfo.c b/src/dirinfo.c index b1e438e2..267e9888 100644 --- a/src/dirinfo.c +++ b/src/dirinfo.c @@ -7,12 +7,12 @@ * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later version. - * + * * GPGME is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this program; if not, see <http://www.gnu.org/licenses/>. */ @@ -33,7 +33,7 @@ DEFINE_STATIC_LOCK (dirinfo_lock); /* Constants used internally to select the data. */ -enum +enum { WANT_HOMEDIR, WANT_AGENT_SOCKET @@ -65,7 +65,7 @@ parse_output (char *line) return; if (!*value) return; - + if (!strcmp (line, "homedir") && !dirinfo.homedir) dirinfo.homedir = strdup (value); else if (!strcmp (line, "agent-socket") && !dirinfo.agent_socket) @@ -76,7 +76,7 @@ parse_output (char *line) /* Read the directory information from gpgconf. This function expects that DIRINFO_LOCK is held by the caller. */ static void -read_gpgconf_dirs (void) +read_gpgconf_dirs (void) { const char *pgmname; char linebuf[1024] = {0}; @@ -112,8 +112,8 @@ read_gpgconf_dirs (void) do { - nread = _gpgme_io_read (rp[0], - linebuf + linelen, + nread = _gpgme_io_read (rp[0], + linebuf + linelen, sizeof linebuf - linelen - 1); if (nread > 0) { @@ -141,7 +141,7 @@ read_gpgconf_dirs (void) } } while (nread > 0 && linelen < sizeof linebuf - 1); - + _gpgme_io_close (rp[0]); } |