mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-05 12:31:50 +01:00
* srv.h, srv.c (getsrv): Use unsigned char rather than char. Noted by
Stefan Bellon.
This commit is contained in:
parent
2c717d9038
commit
1995efc728
@ -32,6 +32,8 @@
|
|||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include "srv.h"
|
#include "srv.h"
|
||||||
|
|
||||||
|
/* Not every installation has gotten around to supporting SRVs
|
||||||
|
yet... */
|
||||||
#ifndef T_SRV
|
#ifndef T_SRV
|
||||||
#define T_SRV 33
|
#define T_SRV 33
|
||||||
#endif
|
#endif
|
||||||
@ -50,9 +52,9 @@ static int priosort(const void *a,const void *b)
|
|||||||
int
|
int
|
||||||
getsrv(const char *name,struct srventry **list)
|
getsrv(const char *name,struct srventry **list)
|
||||||
{
|
{
|
||||||
char answer[PACKETSZ];
|
unsigned char answer[PACKETSZ];
|
||||||
int r,srvcount=0;
|
int r,srvcount=0;
|
||||||
char *pt,*emsg;
|
unsigned char *pt,*emsg;
|
||||||
u16 count,dlen;
|
u16 count,dlen;
|
||||||
|
|
||||||
*list=NULL;
|
*list=NULL;
|
||||||
|
@ -31,11 +31,11 @@
|
|||||||
|
|
||||||
struct srventry
|
struct srventry
|
||||||
{
|
{
|
||||||
uint16_t priority;
|
u16 priority;
|
||||||
uint16_t weight;
|
u16 weight;
|
||||||
uint16_t port;
|
u16 port;
|
||||||
int run_count;
|
int run_count;
|
||||||
char target[MAXDNAME];
|
unsigned char target[MAXDNAME];
|
||||||
};
|
};
|
||||||
|
|
||||||
int getsrv(const char *name,struct srventry **list);
|
int getsrv(const char *name,struct srventry **list);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user