1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

* srv.h, srv.c (getsrv): Use unsigned char rather than char. Noted by

Stefan Bellon.
This commit is contained in:
David Shaw 2003-03-15 02:28:02 +00:00
parent 2c717d9038
commit 1995efc728
2 changed files with 8 additions and 6 deletions

View file

@ -32,6 +32,8 @@
#include "types.h"
#include "srv.h"
/* Not every installation has gotten around to supporting SRVs
yet... */
#ifndef T_SRV
#define T_SRV 33
#endif
@ -50,9 +52,9 @@ static int priosort(const void *a,const void *b)
int
getsrv(const char *name,struct srventry **list)
{
char answer[PACKETSZ];
unsigned char answer[PACKETSZ];
int r,srvcount=0;
char *pt,*emsg;
unsigned char *pt,*emsg;
u16 count,dlen;
*list=NULL;