Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd85a0a6

Browse files
committed
More cleanups now that we have crypt().
1 parent384bbdd commitd85a0a6

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

‎src/include/c.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
1313
* Portions Copyright (c) 1994, Regents of the University of California
1414
*
15-
* $Id: c.h,v 1.143 2003/05/09 16:26:29 momjian Exp $
15+
* $Id: c.h,v 1.144 2003/05/09 16:59:43 momjian Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -798,6 +798,10 @@ extern intvsnprintf(char *str, size_t count, const char *fmt, va_list args);
798798
* Default "extern" declarations or macro substitutes for library routines.
799799
* When necessary, these routines are provided by files in src/port/.
800800
*/
801+
#ifndefHAVE_CRYPT
802+
char*crypt(constchar*key,constchar*setting);
803+
#endif
804+
801805
#ifndefHAVE_FSEEKO
802806
#definefseeko(a,b,c) fseek((a), (b), (c))
803807
#defineftello(a) ftell((a))

‎src/include/port/qnx4.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,5 @@ typedef unsigned char slock_t;
2626

2727
externintisnan(doubledsrc);
2828

29-
externchar*crypt(constchar*,constchar*);
30-
3129
externlongrandom(void);
3230
externvoidsrandom(unsignedintseed);

‎src/interfaces/libpq/win32.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@
2727
#definevsnprintf(a,b,c,d) _vsnprintf(a,b,c,d)
2828
#definesnprintf _snprintf
2929

30-
/*
31-
* crypt not available (yet)
32-
*/
33-
#definecrypt(a,b) ((char *) a)
34-
3530
#undef EAGAIN/* doesn't apply on sockets */
3631
#undef EINTR
3732
#defineEINTR WSAEINTR

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp