Diff for /embedaddon/sudo/src/conversation.c between versions 1.1.1.2 and 1.1.1.3

version 1.1.1.2, 2012/05/29 12:26:49 version 1.1.1.3, 2013/07/22 10:46:13
Line 1 Line 1
 /*  /*
 * Copyright (c) 1999-2005, 2007-2010 Todd C. Miller <Todd.Miller@courtesan.com> * Copyright (c) 1999-2005, 2007-2012 Todd C. Miller <Todd.Miller@courtesan.com>
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above   * purpose with or without fee is hereby granted, provided that the above
Line 21 Line 21
 #include <config.h>  #include <config.h>
   
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/param.h>  
 #include <stdio.h>  #include <stdio.h>
 #ifdef STDC_HEADERS  #ifdef STDC_HEADERS
 # include <stdlib.h>  # include <stdlib.h>
Line 51 Line 50
   
 extern int tgetpass_flags; /* XXX */  extern int tgetpass_flags; /* XXX */
   
 #if defined(HAVE_DLOPEN) || defined(HAVE_SHL_LOAD)  
 sudo_conv_t sudo_conv;  /* NULL in sudo front-end */  
 #endif  
   
 /*  /*
  * Sudo conversation function.   * Sudo conversation function.
  */   */
Line 119  err: Line 114  err:
     } while (n--);      } while (n--);
   
     return -1;      return -1;
 }  
   
 int  
 _sudo_printf(int msg_type, const char *fmt, ...)  
 {  
     va_list ap;  
     FILE *fp;  
     int len;  
   
     switch (msg_type) {  
     case SUDO_CONV_INFO_MSG:  
         fp = stdout;  
         break;  
     case SUDO_CONV_ERROR_MSG:  
         fp = stderr;  
         break;  
     default:  
         errno = EINVAL;  
         return -1;  
     }  
   
     va_start(ap, fmt);  
     len = vfprintf(fp, fmt, ap);  
     va_end(ap);  
   
     return len;  
 }  }

Removed from v.1.1.1.2  
changed lines
  Added in v.1.1.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>