Skip to content

Commit 72dd46c

Browse files
committed
Typo: priviledges->privileges
1 parent f616c4f commit 72dd46c

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

src/compiler/fbint.bi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ enum FB_RTERROR
9393
FB_RTERROR_ILLEGALRESUME
9494
FB_RTERROR_OUTOFBOUNDS
9595
FB_RTERROR_NULLPTR
96-
FB_RTERROR_NOPRIVILEDGES
96+
FB_RTERROR_NOPRIVILEGES
9797
FB_RTERROR_SIGINT
9898
FB_RTERROR_SIGILL
9999
FB_RTERROR_SIGFPE

src/rtlib/error.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ static const char *messages[] = {
1111
"illegal resume", /* FB_RTERROR_ILLEGALRESUME */
1212
"out of bounds array access", /* FB_RTERROR_OUTOFBOUNDS */
1313
"null pointer access", /* FB_RTERROR_NULLPTR */
14-
"no priviledges", /* FB_RTERROR_NOPRIVILEDGES */
14+
"no privileges", /* FB_RTERROR_NOPRIVILEGES */
1515
"\"interrupted\" signal", /* FB_RTERROR_SIGINT */
1616
"\"illegal instruction\" signal", /* FB_RTERROR_SIGILL */
1717
"\"floating point error\" signal", /* FB_RTERROR_SIGFPE */

src/rtlib/fb_error.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ typedef enum _FB_RTERROR {
77
FB_RTERROR_ILLEGALRESUME,
88
FB_RTERROR_OUTOFBOUNDS,
99
FB_RTERROR_NULLPTR,
10-
FB_RTERROR_NOPRIVILEDGES,
10+
FB_RTERROR_NOPRIVILEGES,
1111
FB_RTERROR_SIGINT,
1212
FB_RTERROR_SIGILL,
1313
FB_RTERROR_SIGFPE,

src/rtlib/file_kill.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ FBCALL int fb_FileKill( FBSTRING *str )
3232
res = FB_RTERROR_FILEIO;
3333
break;
3434
case EPERM:
35-
res = FB_RTERROR_NOPRIVILEDGES;
35+
res = FB_RTERROR_NOPRIVILEGES;
3636
break;
3737
default:
3838
res = FB_RTERROR_ILLEGALFUNCTIONCALL;

src/rtlib/linux/sys_portio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ int fb_hIn( unsigned short port )
88
#if defined HOST_X86 || defined HOST_X86_64
99
unsigned char value;
1010
if (!__fb_con.has_perm)
11-
return -fb_ErrorSetNum( FB_RTERROR_NOPRIVILEDGES );
11+
return -fb_ErrorSetNum( FB_RTERROR_NOPRIVILEGES );
1212
__asm__ volatile ("inb %1, %0" : "=a" (value) : "d" (port));
1313
return (int)value;
1414
#else
@@ -20,7 +20,7 @@ int fb_hOut( unsigned short port, unsigned char value )
2020
{
2121
#if defined HOST_X86 || defined HOST_X86_64
2222
if (!__fb_con.has_perm)
23-
return fb_ErrorSetNum( FB_RTERROR_NOPRIVILEDGES );
23+
return fb_ErrorSetNum( FB_RTERROR_NOPRIVILEGES );
2424
__asm__ volatile ("outb %0, %1" : : "a" (value), "d" (port));
2525
return FB_RTERROR_OK;
2626
#else

src/rtlib/win32/io_serial.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ int fb_SerialOpen( FB_FILE *handle,
139139
if( res==FB_RTERROR_OK ) {
140140
COMMPROP prop;
141141
if( !GetCommProperties( hDevice, &prop ) ) {
142-
res = fb_ErrorSetNum( FB_RTERROR_NOPRIVILEDGES );
142+
res = fb_ErrorSetNum( FB_RTERROR_NOPRIVILEGES );
143143
} else {
144144
if( prop.dwCurrentTxQueue ) {
145145
dwDefaultTxBufferSize = prop.dwCurrentTxQueue;
@@ -173,7 +173,7 @@ int fb_SerialOpen( FB_FILE *handle,
173173
if( res==FB_RTERROR_OK ) {
174174
COMMTIMEOUTS timeouts;
175175
if( !GetCommTimeouts( hDevice, &timeouts ) ) {
176-
res = fb_ErrorSetNum( FB_RTERROR_NOPRIVILEDGES );
176+
res = fb_ErrorSetNum( FB_RTERROR_NOPRIVILEGES );
177177
} else {
178178
if( options->DurationCTS!=0 ) {
179179
timeouts.ReadIntervalTimeout = options->DurationCTS;
@@ -190,7 +190,7 @@ int fb_SerialOpen( FB_FILE *handle,
190190
if( res==FB_RTERROR_OK ) {
191191
DCB dcb;
192192
if( !GetCommState( hDevice, &dcb ) ) {
193-
res = fb_ErrorSetNum( FB_RTERROR_NOPRIVILEDGES );
193+
res = fb_ErrorSetNum( FB_RTERROR_NOPRIVILEGES );
194194
} else {
195195
dcb.BaudRate = options->uiSpeed;
196196
dcb.fBinary = !options->AddLF; /* FIXME: Windows only supports binary mode */

src/rtlib/win32/sys_portio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ int fb_hIn( unsigned short port )
138138
if( !inited )
139139
inited = init_ports( );
140140
if( !inited )
141-
return -fb_ErrorSetNum( FB_RTERROR_NOPRIVILEDGES );
141+
return -fb_ErrorSetNum( FB_RTERROR_NOPRIVILEGES );
142142

143143
__asm__ volatile ("inb %1, %0" : "=a" (value) : "d" (port));
144144

@@ -150,7 +150,7 @@ int fb_hOut( unsigned short port, unsigned char value )
150150
if( !inited )
151151
inited = init_ports( );
152152
if( !inited )
153-
return fb_ErrorSetNum( FB_RTERROR_NOPRIVILEDGES );
153+
return fb_ErrorSetNum( FB_RTERROR_NOPRIVILEGES );
154154

155155
__asm__ volatile ("outb %0, %1" : : "a" (value), "d" (port));
156156

0 commit comments

Comments
 (0)