Skip to content

Commit 37a171f

Browse files
authored
Merge pull request #2621 from floriangit/elks_sys_fix_warning
Elks sys fix warning
2 parents 5a1a6c5 + ea8c8c0 commit 37a171f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

elksemu/elks_sys.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ elks_open(int bx, int cx, int dx, int di, int si)
151151
if (fd < 0)
152152
return fd;
153153
unlink("/tmp/perror");
154-
write(fd, efile, sizeof(efile));
154+
int tmp = write(fd, efile, sizeof(efile));
155155
lseek(fd, 0L, 0);
156156
return fd;
157157
}

slattach.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# run "net start slip" on ELKS after running this script as root
44
#
55

6-
if [[ $(id -u) != 0 ]];
6+
if [ "$(id -un)" != "root" ];
77
then
88
echo "Please run me as root."
99
exit 1

0 commit comments

Comments
 (0)