sprinkle const
This commit is contained in:
parent
03256c6e55
commit
b8097652d6
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: localedef.h,v 1.6 2002/11/19 09:53:16 junyoung Exp $ */
|
||||
/* $NetBSD: localedef.h,v 1.7 2005/11/29 03:12:16 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Winning Strategies, Inc.
|
||||
|
@ -34,10 +34,10 @@
|
|||
#define _SYS_LOCALEDEF_H_
|
||||
|
||||
typedef struct {
|
||||
char *yesexpr;
|
||||
char *noexpr;
|
||||
char *yesstr;
|
||||
char *nostr;
|
||||
const char *yesexpr;
|
||||
const char *noexpr;
|
||||
const char *yesstr;
|
||||
const char *nostr;
|
||||
} _MessagesLocale;
|
||||
|
||||
extern const _MessagesLocale *_CurrentMessagesLocale;
|
||||
|
@ -45,13 +45,13 @@ extern const _MessagesLocale _DefaultMessagesLocale;
|
|||
|
||||
|
||||
typedef struct {
|
||||
char *int_curr_symbol;
|
||||
char *currency_symbol;
|
||||
char *mon_decimal_point;
|
||||
char *mon_thousands_sep;
|
||||
char *mon_grouping;
|
||||
char *positive_sign;
|
||||
char *negative_sign;
|
||||
const char *int_curr_symbol;
|
||||
const char *currency_symbol;
|
||||
const char *mon_decimal_point;
|
||||
const char *mon_thousands_sep;
|
||||
const char *mon_grouping;
|
||||
const char *positive_sign;
|
||||
const char *negative_sign;
|
||||
char int_frac_digits;
|
||||
char frac_digits;
|
||||
char p_cs_precedes;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: socket.h,v 1.76 2005/09/24 15:52:03 christos Exp $ */
|
||||
/* $NetBSD: socket.h,v 1.77 2005/11/29 03:12:16 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||
|
@ -474,6 +474,9 @@ struct cmsghdr {
|
|||
/* given pointer to struct cmsghdr, return pointer to data */
|
||||
#define CMSG_DATA(cmsg) \
|
||||
((u_char *)(void *)(cmsg) + __CMSG_ALIGN(sizeof(struct cmsghdr)))
|
||||
#define CCMSG_DATA(cmsg) \
|
||||
((const u_char *)(const void *)(cmsg) + \
|
||||
__CMSG_ALIGN(sizeof(struct cmsghdr)))
|
||||
|
||||
/*
|
||||
* Alignment requirement for CMSG struct manipulation.
|
||||
|
|
Loading…
Reference in New Issue