aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-05-06 00:03:50 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-05-07 14:58:17 +0200
commit310eadb3a5ccd4d78ecc3a87e9c5507f72745ede (patch)
tree3f2d9ac393459055d7cccfde42163fd3ac48b7c9 /nx-X11/programs
parent5c99ec51ad000189a30ad9a19326bff7b12adbcf (diff)
downloadnx-libs-310eadb3a5ccd4d78ecc3a87e9c5507f72745ede.tar.gz
nx-libs-310eadb3a5ccd4d78ecc3a87e9c5507f72745ede.tar.bz2
nx-libs-310eadb3a5ccd4d78ecc3a87e9c5507f72745ede.zip
Reconnect.c: reformat saveAgentState()
Diffstat (limited to 'nx-X11/programs')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Reconnect.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Reconnect.c b/nx-X11/programs/Xserver/hw/nxagent/Reconnect.c
index 9858924d3..93e9ab432 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Reconnect.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Reconnect.c
@@ -146,13 +146,12 @@ void setStatePath(char* path)
void saveAgentState(char* state)
{
- FILE* fptr;
- if(strlen(stateFile))
+ if (strlen(stateFile))
{
- fptr=fopen(stateFile, "w");
- if(!fptr)
+ FILE* fptr = fopen(stateFile, "w");
+ if (!fptr)
return;
- fprintf(fptr,"%s", state);
+ fprintf(fptr, "%s", state);
fclose(fptr);
}
}