diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 4 | ||||
-rw-r--r-- | src/backend.c | 25 | ||||
-rw-r--r-- | src/backend.h | 21 | ||||
-rw-r--r-- | src/defaults.c | 21 | ||||
-rw-r--r-- | src/defaults.h | 21 | ||||
-rw-r--r-- | src/dispatch.c | 21 | ||||
-rw-r--r-- | src/dispatch.h | 21 | ||||
-rw-r--r-- | src/dummymap.c | 21 | ||||
-rw-r--r-- | src/format.c | 21 | ||||
-rw-r--r-- | src/format.h | 25 | ||||
-rw-r--r-- | src/map.c | 23 | ||||
-rw-r--r-- | src/map.h | 21 | ||||
-rw-r--r-- | src/nis.c | 21 | ||||
-rw-r--r-- | src/nis.h | 21 | ||||
-rw-r--r-- | src/plugin.c | 21 | ||||
-rw-r--r-- | src/plugin.h | 21 | ||||
-rw-r--r-- | src/portmap.c | 21 | ||||
-rw-r--r-- | src/portmap.h | 21 |
18 files changed, 362 insertions, 9 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 645ea75..28d5e47 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,8 +1,4 @@ -if GCC -AM_CFLAGS = $(RUNTIME_CFLAGS) -Wall -Wimplicit -Wextra -Wuninitialized -else AM_CFLAGS = $(RUNTIME_CFLAGS) -endif AM_LDFLAGS = -module -avoid-version LIBADD = $(RUNTIME_LIBS) -lnsl -lpthread diff --git a/src/backend.c b/src/backend.c index 2c81b36..148db3d 100644 --- a/src/backend.c +++ b/src/backend.c @@ -1,3 +1,24 @@ +/* + * Copyright 2008 Red Hat, Inc. + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This Program 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 + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this Program; if not, write to the + * + * Free Software Foundation, Inc. + * 59 Temple Place, Suite 330 + * Boston, MA 02111-1307 USA + * + */ + #ifdef HAVE_CONFIG_H #include "../config.h" #endif @@ -18,10 +39,10 @@ #include <rpc/xdr.h> #include "backend.h" +#include "defaults.h" +#include "format.h" #include "plugin.h" #include "map.h" -#include "format.h" -#include "defaults.h" /* The data we ask the map cache to keep, for us, for each map. */ struct backend_map_data { diff --git a/src/backend.h b/src/backend.h index a76b0da..eca1869 100644 --- a/src/backend.h +++ b/src/backend.h @@ -1,3 +1,24 @@ +/* + * Copyright 2008 Red Hat, Inc. + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This Program 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 + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this Program; if not, write to the + * + * Free Software Foundation, Inc. + * 59 Temple Place, Suite 330 + * Boston, MA 02111-1307 USA + * + */ + #ifndef backend_h #define backend_h struct plugin_state; diff --git a/src/defaults.c b/src/defaults.c index 1185114..52a3b60 100644 --- a/src/defaults.c +++ b/src/defaults.c @@ -1,3 +1,24 @@ +/* + * Copyright 2008 Red Hat, Inc. + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This Program 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 + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this Program; if not, write to the + * + * Free Software Foundation, Inc. + * 59 Temple Place, Suite 330 + * Boston, MA 02111-1307 USA + * + */ + #ifdef HAVE_CONFIG_H #include "../config.h" #endif diff --git a/src/defaults.h b/src/defaults.h index 448e922..29c7c4a 100644 --- a/src/defaults.h +++ b/src/defaults.h @@ -1,3 +1,24 @@ +/* + * Copyright 2008 Red Hat, Inc. + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This Program 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 + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this Program; if not, write to the + * + * Free Software Foundation, Inc. + * 59 Temple Place, Suite 330 + * Boston, MA 02111-1307 USA + * + */ + #ifndef defaults_h #define defaults_h void defaults_get_map_config(const char *mapname, diff --git a/src/dispatch.c b/src/dispatch.c index 2f216ac..a9f6e98 100644 --- a/src/dispatch.c +++ b/src/dispatch.c @@ -1,3 +1,24 @@ +/* + * Copyright 2008 Red Hat, Inc. + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This Program 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 + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this Program; if not, write to the + * + * Free Software Foundation, Inc. + * 59 Temple Place, Suite 330 + * Boston, MA 02111-1307 USA + * + */ + #ifdef HAVE_CONFIG_H #include "../config.h" #endif diff --git a/src/dispatch.h b/src/dispatch.h index 2fc273e..6ebb079 100644 --- a/src/dispatch.h +++ b/src/dispatch.h @@ -1,3 +1,24 @@ +/* + * Copyright 2008 Red Hat, Inc. + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This Program 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 + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this Program; if not, write to the + * + * Free Software Foundation, Inc. + * 59 Temple Place, Suite 330 + * Boston, MA 02111-1307 USA + * + */ + #ifndef dispatch_h #define dispatch_h struct plugin_state; diff --git a/src/dummymap.c b/src/dummymap.c index f093a10..a3c003e 100644 --- a/src/dummymap.c +++ b/src/dummymap.c @@ -1,3 +1,24 @@ +/* + * Copyright 2008 Red Hat, Inc. + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This Program 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 + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this Program; if not, write to the + * + * Free Software Foundation, Inc. + * 59 Temple Place, Suite 330 + * Boston, MA 02111-1307 USA + * + */ + #ifdef HAVE_CONFIG_H #include "../config.h" #endif diff --git a/src/format.c b/src/format.c index 948c767..72c915e 100644 --- a/src/format.c +++ b/src/format.c @@ -1,3 +1,24 @@ +/* + * Copyright 2008 Red Hat, Inc. + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This Program 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 + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this Program; if not, write to the + * + * Free Software Foundation, Inc. + * 59 Temple Place, Suite 330 + * Boston, MA 02111-1307 USA + * + */ + #ifdef HAVE_CONFIG_H #include "../config.h" #endif diff --git a/src/format.h b/src/format.h index 8ccd9cf..8168e26 100644 --- a/src/format.h +++ b/src/format.h @@ -1,5 +1,26 @@ -#ifndef defaults_h -#define defaults_h +/* + * Copyright 2008 Red Hat, Inc. + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This Program 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 + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this Program; if not, write to the + * + * Free Software Foundation, Inc. + * 59 Temple Place, Suite 330 + * Boston, MA 02111-1307 USA + * + */ + +#ifndef format_h +#define format_h struct slapi_pblock; struct slapi_entry; struct plugin_state; @@ -1,3 +1,24 @@ +/* + * Copyright 2008 Red Hat, Inc. + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This Program 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 + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this Program; if not, write to the + * + * Free Software Foundation, Inc. + * 59 Temple Place, Suite 330 + * Boston, MA 02111-1307 USA + * + */ + #ifdef HAVE_CONFIG_H #include "../config.h" #endif @@ -18,7 +39,7 @@ #include <slapi-plugin.h> #endif -#include <rpc/xdr.h> +#include <rpc/rpc.h> #include "backend.h" #include "dispatch.h" @@ -1,3 +1,24 @@ +/* + * Copyright 2008 Red Hat, Inc. + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This Program 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 + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this Program; if not, write to the + * + * Free Software Foundation, Inc. + * 59 Temple Place, Suite 330 + * Boston, MA 02111-1307 USA + * + */ + #ifndef map_h #define map_h struct plugin_state; @@ -1,3 +1,24 @@ +/* + * Copyright 2008 Red Hat, Inc. + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This Program 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 + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this Program; if not, write to the + * + * Free Software Foundation, Inc. + * 59 Temple Place, Suite 330 + * Boston, MA 02111-1307 USA + * + */ + #ifdef HAVE_CONFIG_H #include "../config.h" #endif @@ -1,3 +1,24 @@ +/* + * Copyright 2008 Red Hat, Inc. + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This Program 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 + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this Program; if not, write to the + * + * Free Software Foundation, Inc. + * 59 Temple Place, Suite 330 + * Boston, MA 02111-1307 USA + * + */ + #ifndef nis_h #define nis_h diff --git a/src/plugin.c b/src/plugin.c index 7f49352..a0f604d 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -1,3 +1,24 @@ +/* + * Copyright 2008 Red Hat, Inc. + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This Program 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 + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this Program; if not, write to the + * + * Free Software Foundation, Inc. + * 59 Temple Place, Suite 330 + * Boston, MA 02111-1307 USA + * + */ + #ifdef HAVE_CONFIG_H #include "../config.h" #endif diff --git a/src/plugin.h b/src/plugin.h index 230bad1..c0c4e60 100644 --- a/src/plugin.h +++ b/src/plugin.h @@ -1,3 +1,24 @@ +/* + * Copyright 2008 Red Hat, Inc. + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This Program 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 + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this Program; if not, write to the + * + * Free Software Foundation, Inc. + * 59 Temple Place, Suite 330 + * Boston, MA 02111-1307 USA + * + */ + #ifndef plugin_h #define plugin_h diff --git a/src/portmap.c b/src/portmap.c index e3c26ce..477dbdf 100644 --- a/src/portmap.c +++ b/src/portmap.c @@ -1,3 +1,24 @@ +/* + * Copyright 2008 Red Hat, Inc. + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This Program 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 + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this Program; if not, write to the + * + * Free Software Foundation, Inc. + * 59 Temple Place, Suite 330 + * Boston, MA 02111-1307 USA + * + */ + #ifdef HAVE_CONFIG_H #include "../config.h" #endif diff --git a/src/portmap.h b/src/portmap.h index 18b7152..0312188 100644 --- a/src/portmap.h +++ b/src/portmap.h @@ -1,3 +1,24 @@ +/* + * Copyright 2008 Red Hat, Inc. + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This Program 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 + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this Program; if not, write to the + * + * Free Software Foundation, Inc. + * 59 Temple Place, Suite 330 + * Boston, MA 02111-1307 USA + * + */ + #ifndef portmap_h #define portmap_h |