summaryrefslogtreecommitdiff
path: root/oldXMenu/XLookAssoc.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-12-04 12:42:29 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2012-12-04 12:42:29 -0800
commit47a6e6df2b6430c1047538260750cdbe78c566d5 (patch)
tree74a5a56fedf019b493e321682dd1dafdb5a905f8 /oldXMenu/XLookAssoc.c
parentaefa2ead351b5d22ef739b27108932acdf905ba5 (diff)
downloademacs-47a6e6df2b6430c1047538260750cdbe78c566d5.tar.gz
Include <config.h> uniformly in oldXMenu sources.
* Activate.c, AddPane.c, AddSel.c, ChgPane.c, ChgSel.c, Create.c: * InsPane.c, InsSel.c, Internal.c, XMakeAssoc.c: Do not include <config.h>, since XMenuInt.h does that now. * XLookAssoc.c, XMenuInt.h: Include <config.h>. This avoids a build failure when configuring on Fedora 17 --with-x-toolkit=no, reported by Dmitry Andropov in <http://lists.gnu.org/archive/html/emacs-devel/2012-12/msg00078.html>.
Diffstat (limited to 'oldXMenu/XLookAssoc.c')
-rw-r--r--oldXMenu/XLookAssoc.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/oldXMenu/XLookAssoc.c b/oldXMenu/XLookAssoc.c
index e287ebbaa72..fad960d7a4c 100644
--- a/oldXMenu/XLookAssoc.c
+++ b/oldXMenu/XLookAssoc.c
@@ -2,7 +2,7 @@
#include "copyright.h"
-
+#include <config.h>
#include <X11/Xlib.h>
#include <X11/Xresource.h>
#include "X10.h"
@@ -18,10 +18,9 @@
* in the table the routine will return a NULL pointer. All XId's are relative
* to the currently active Display.
*/
-caddr_t XLookUpAssoc(register Display *dpy, register XAssocTable *table, register XID x_id)
-
- /* XAssocTable to search in. */
- /* XId to search for. */
+caddr_t XLookUpAssoc(Display *dpy,
+ XAssocTable *table, /* XAssocTable to search in. */
+ XID x_id) /* XId to search for. */
{
int hash;
register XAssoc *bucket;
@@ -55,4 +54,3 @@ caddr_t XLookUpAssoc(register Display *dpy, register XAssocTable *table, registe
/* It is apparently not in the table. */
return(NULL);
}
-