summaryrefslogtreecommitdiff
path: root/h
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@mit.edu>2008-12-21 23:33:31 +0000
committerGravatar Karl Ramm <kcr@mit.edu>2008-12-21 23:33:31 +0000
commit4bf6bad913931fff08fb2a52fd74b49c2242a718 (patch)
tree866cfdf8f1a85c91c3f6bda6463d4b39b9c67e17 /h
parentf756ccdf415ab177d7425aa63c49364709393b40 (diff)
cleanup, remove prototype shielding
Diffstat (limited to 'h')
-rw-r--r--h/internal.h57
1 files changed, 31 insertions, 26 deletions
diff --git a/h/internal.h b/h/internal.h
index 3782a12..b2d883e 100644
--- a/h/internal.h
+++ b/h/internal.h
@@ -94,44 +94,49 @@ extern int __subscriptions_next;
extern int __Zephyr_port; /* Port number */
extern struct in_addr __My_addr;
-typedef Code_t (*Z_SendProc) __P((ZNotice_t *, char *, int, int));
-
-struct _Z_InputQ *Z_GetFirstComplete __P((void));
-struct _Z_InputQ *Z_GetNextComplete __P((struct _Z_InputQ *));
-Code_t Z_XmitFragment __P((ZNotice_t*, char *,int,int));
-void Z_RemQueue __P((struct _Z_InputQ *));
-Code_t Z_AddNoticeToEntry __P((struct _Z_InputQ*, ZNotice_t*, int));
-Code_t Z_FormatAuthHeader __P((ZNotice_t *, char *, int, int *, Z_AuthProc));
-Code_t Z_FormatHeader __P((ZNotice_t *, char *, int, int *, Z_AuthProc));
-Code_t Z_FormatRawHeader __P((ZNotice_t *, char*, int,
- int*, char **, char **));
-Code_t Z_ReadEnqueue __P((void));
-Code_t Z_ReadWait __P((void));
-Code_t Z_SendLocation __P((char*, char*, Z_AuthProc, char*));
-Code_t Z_SendFragmentedNotice __P((ZNotice_t *notice, int len,
+typedef Code_t (*Z_SendProc) (ZNotice_t *, char *, int, int);
+
+struct _Z_InputQ *Z_GetFirstComplete (void);
+struct _Z_InputQ *Z_GetNextComplete (struct _Z_InputQ *);
+Code_t Z_XmitFragment (ZNotice_t*, char *,int,int);
+void Z_RemQueue (struct _Z_InputQ *);
+Code_t Z_AddNoticeToEntry (struct _Z_InputQ*, ZNotice_t*, int);
+Code_t Z_FormatAuthHeader (ZNotice_t *, char *, int, int *, Z_AuthProc);
+Code_t Z_FormatHeader (ZNotice_t *, char *, int, int *, Z_AuthProc);
+Code_t Z_FormatRawHeader (ZNotice_t *, char*, int,
+ int*, char **, char **);
+Code_t Z_ReadEnqueue (void);
+Code_t Z_ReadWait (void);
+Code_t Z_SendLocation (char*, char*, Z_AuthProc, char*);
+Code_t Z_SendFragmentedNotice (ZNotice_t *notice, int len,
Z_AuthProc cert_func,
- Z_SendProc send_func));
-Code_t Z_WaitForComplete __P((void));
+ Z_SendProc send_func);
+Code_t Z_WaitForComplete (void);
Code_t Z_WaitForNotice (ZNotice_t *notice,
int (*pred)(ZNotice_t *, void *), void *arg,
int timeout);
-Code_t Z_NewFormatHeader __P((ZNotice_t *, char *, int, int *, Z_AuthProc));
-Code_t Z_NewFormatAuthHeader __P((ZNotice_t *, char *, int, int *, Z_AuthProc));
-Code_t Z_NewFormatRawHeader __P((ZNotice_t *, char *, int, int *, char **,
- int *, char **, char **));
-Code_t Z_AsciiFormatRawHeader __P((ZNotice_t *, char *, int, int *, char **,
- int *, char **, char **));
+Code_t Z_NewFormatHeader (ZNotice_t *, char *, int, int *, Z_AuthProc);
+Code_t Z_NewFormatAuthHeader (ZNotice_t *, char *, int, int *, Z_AuthProc);
+Code_t Z_NewFormatRawHeader (ZNotice_t *, char *, int, int *, char **,
+ int *, char **, char **);
+Code_t Z_AsciiFormatRawHeader (ZNotice_t *, char *, int, int *, char **,
+ int *, char **, char **);
void Z_gettimeofday(struct _ZTimeval *ztv, struct timezone *tz);
#ifdef HAVE_KRB5
int ZGetCreds(krb5_creds **creds_out);
int ZGetCredsRealm(krb5_creds **creds_out, char *realm);
-Code_t Z_Checksum(krb5_data *cksumbuf, krb5_keyblock *keyblock, krb5_cksumtype cksumtype, char **asn1_data, unsigned int *asn1_len);
-Code_t Z_ExtractEncCksum(krb5_keyblock *keyblock, krb5_enctype *enctype, krb5_cksumtype *cksumtype);
-int Z_krb5_verify_cksum(krb5_keyblock *keyblock, krb5_data *cksumbuf, krb5_cksumtype cksumtype, unsigned char *asn1_data, int asn1_len);
+Code_t Z_Checksum(krb5_data *cksumbuf, krb5_keyblock *keyblock,
+ krb5_cksumtype cksumtype, char **asn1_data,
+ unsigned int *asn1_len);
+Code_t Z_ExtractEncCksum(krb5_keyblock *keyblock, krb5_enctype *enctype,
+ krb5_cksumtype *cksumtype);
+int Z_krb5_verify_cksum(krb5_keyblock *keyblock, krb5_data *cksumbuf,
+ krb5_cksumtype cksumtype, unsigned char *asn1_data,
+ int asn1_len);
Code_t Z_InsertZcodeChecksum(krb5_keyblock *keyblock, ZNotice_t *notice,
char *buffer,
char *cksum_start, int cksum_len,