File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ struct ReadFromFDResult readFromFD(
106
106
107
107
static ssize_t signalSafeWrite (
108
108
int fd ,
109
- void * buf ,
109
+ const void * buf ,
110
110
size_t count )
111
111
{
112
112
bool interrupted ;
@@ -123,7 +123,7 @@ static ssize_t signalSafeWrite(
123
123
124
124
struct WriteToFDResult writeToFD (
125
125
int fd ,
126
- void * buf ,
126
+ const void * buf ,
127
127
size_t bytesToWrite )
128
128
{
129
129
ssize_t writeRetVal ;
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ struct WriteToFDResult
58
58
59
59
struct WriteToFDResult writeToFD (
60
60
int fd ,
61
- void * buf ,
61
+ const void * buf ,
62
62
size_t bytesToWrite );
63
63
64
64
extern int signalSafeClose (
Original file line number Diff line number Diff line change @@ -1198,9 +1198,9 @@ static void writeAcceptedFDToIOThread(
1198
1198
const struct ProxySettings * proxySettings ,
1199
1199
const int * ioThreadPipeWriteFDs ,
1200
1200
size_t * nextPipeWriteFDIndex ,
1201
- int acceptedFD )
1201
+ const int acceptedFD )
1202
1202
{
1203
- unsigned char * pCharBuffer = (unsigned char * )(& acceptedFD );
1203
+ const unsigned char * pCharBuffer = (const unsigned char * )(& acceptedFD );
1204
1204
size_t bytesToWrite = sizeof (int );
1205
1205
size_t totalBytesWritten = 0 ;
1206
1206
You can’t perform that action at this time.
0 commit comments