Diff for /src/usr.sbin/ypserv/yp_server.c between versions 1.2 and 1.3

version 1.2, 2003/06/17 04:30:04 version 1.3, 2004/03/31 23:20:22
Line 30 Line 30
  * SUCH DAMAGE.   * SUCH DAMAGE.
  *   *
  * $FreeBSD: src/usr.sbin/ypserv/yp_server.c,v 1.31.2.1 2002/02/15 00:47:00 des Exp $   * $FreeBSD: src/usr.sbin/ypserv/yp_server.c,v 1.31.2.1 2002/02/15 00:47:00 des Exp $
 * $DragonFly: src/usr.sbin/ypserv/yp_server.c,v 1.1 2003/06/16 07:40:08 dillon Exp $ * $DragonFly$
  */   */
   
 #include "yp.h"  #include "yp.h"
Line 53  int children = 0; Line 53  int children = 0;
 #define ORDER_STRING    "YP_LAST_MODIFIED"  #define ORDER_STRING    "YP_LAST_MODIFIED"
 #define ORDER_SZ        sizeof(ORDER_STRING) - 1  #define ORDER_SZ        sizeof(ORDER_STRING) - 1
   
static pid_t yp_fork()static pid_t
 yp_fork(void)
 {  {
         if (yp_pid != getpid()) {          if (yp_pid != getpid()) {
                 yp_error("child %d trying to fork!", getpid());                  yp_error("child %d trying to fork!", getpid());
Line 454  ypproc_clear_2_svc(void *argp, struct sv Line 455  ypproc_clear_2_svc(void *argp, struct sv
  * or encounter an error.   * or encounter an error.
  */   */
 static bool_t  static bool_t
xdr_my_ypresp_all(register XDR *xdrs, ypresp_all *objp)xdr_my_ypresp_all(XDR *xdrs, ypresp_all *objp)
 {  {
         while (1) {          while (1) {
                 /* Get a record. */                  /* Get a record. */
Line 652  ypproc_order_2_svc(ypreq_nokey *argp, st Line 653  ypproc_order_2_svc(ypreq_nokey *argp, st
         return (&result);          return (&result);
 }  }
   
static void yp_maplist_free(yp_maplist)static void yp_maplist_free(struct ypmaplist *yp_maplist)
        struct ypmaplist *yp_maplist; 
 {  {
        register struct ypmaplist *next;        struct ypmaplist *next;
   
         while (yp_maplist) {          while (yp_maplist) {
                 next = yp_maplist->next;                  next = yp_maplist->next;
Line 666  static void yp_maplist_free(yp_maplist) Line 666  static void yp_maplist_free(yp_maplist)
         return;          return;
 }  }
   
static struct ypmaplist *yp_maplist_create(domain)static struct ypmaplist *yp_maplist_create(const char *domain)
        const char *domain; 
 {  {
         char yp_mapdir[MAXPATHLEN + 2];          char yp_mapdir[MAXPATHLEN + 2];
         char yp_mapname[MAXPATHLEN + 2];          char yp_mapname[MAXPATHLEN + 2];

Removed from v.1.2  
changed lines
  Added in v.1.3