aboutsummaryrefslogtreecommitdiffstats
path: root/src/gnutls.c
diff options
context:
space:
mode:
authorDmitry Antipov2012-07-10 20:53:26 +0400
committerDmitry Antipov2012-07-10 20:53:26 +0400
commit7d7bbefd049fc22cf3bf333592abf57a3bde8766 (patch)
treeab416b8873bb2c77a6d247b1c65a94ec5d274d3b /src/gnutls.c
parent3a4c8000fba422ac9d005d29ad0c5d8becc58167 (diff)
downloademacs-7d7bbefd049fc22cf3bf333592abf57a3bde8766.tar.gz
emacs-7d7bbefd049fc22cf3bf333592abf57a3bde8766.zip
Use XCAR and XCDR instead of Fcar and Fcdr where possible.
* admin/coccinelle/list_loop.cocci: Semantic patch to convert from Fcdr to XCDR and consistently use CONSP in the list iteration loops. * admin/coccinelle/vector_contents.cocci: Fix indentation. * src/callint.c, src/coding.c, src/doc.c, src/editfns.c, src/eval.c, * src/font.c, src/fontset.c, src/frame.c, src/gnutls.c, src/minibuf.c, * src/msdos.c, src/textprop.c, src/w32fns.c, src/w32menu.c, src/window.c, * src/xmenu.c: Changed to use XCAR and XCDR where argument type is known to be a Lisp_Cons.
Diffstat (limited to 'src/gnutls.c')
-rw-r--r--src/gnutls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gnutls.c b/src/gnutls.c
index 9c96379ff7e..21658a1bc82 100644
--- a/src/gnutls.c
+++ b/src/gnutls.c
@@ -871,7 +871,7 @@ one trustfile (usually a CA bundle). */)
871 int file_format = GNUTLS_X509_FMT_PEM; 871 int file_format = GNUTLS_X509_FMT_PEM;
872 Lisp_Object tail; 872 Lisp_Object tail;
873 873
874 for (tail = trustfiles; !NILP (tail); tail = Fcdr (tail)) 874 for (tail = trustfiles; CONSP (tail); tail = XCDR (tail))
875 { 875 {
876 Lisp_Object trustfile = Fcar (tail); 876 Lisp_Object trustfile = Fcar (tail);
877 if (STRINGP (trustfile)) 877 if (STRINGP (trustfile))
@@ -893,7 +893,7 @@ one trustfile (usually a CA bundle). */)
893 } 893 }
894 } 894 }
895 895
896 for (tail = crlfiles; !NILP (tail); tail = Fcdr (tail)) 896 for (tail = crlfiles; CONSP (tail); tail = XCDR (tail))
897 { 897 {
898 Lisp_Object crlfile = Fcar (tail); 898 Lisp_Object crlfile = Fcar (tail);
899 if (STRINGP (crlfile)) 899 if (STRINGP (crlfile))
@@ -913,7 +913,7 @@ one trustfile (usually a CA bundle). */)
913 } 913 }
914 } 914 }
915 915
916 for (tail = keylist; !NILP (tail); tail = Fcdr (tail)) 916 for (tail = keylist; CONSP (tail); tail = XCDR (tail))
917 { 917 {
918 Lisp_Object keyfile = Fcar (Fcar (tail)); 918 Lisp_Object keyfile = Fcar (Fcar (tail));
919 Lisp_Object certfile = Fcar (Fcdr (tail)); 919 Lisp_Object certfile = Fcar (Fcdr (tail));