From 9f4e5c65c7f1dcf00c2fc4b0ba7b4ef6803a7023 Mon Sep 17 00:00:00 2001 From: Joshua Kwan Date: Thu, 17 Jun 2004 16:42:56 +0000 Subject: [PATCH] various fixes git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@300 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- Changelog | 4 ++++ Makefile | 2 +- dgl-common.c | 4 ++-- dgl-create-chroot | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Changelog b/Changelog index 2b45c6f..cd79c39 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,7 @@ +1.4.6 (????/??/??) + * Fix some signed/unsigned warnings. + * Fix make install check for PREFIX -> $(PREFIX). + 1.4.5 (2004/06/14) * Reset offset if necessary to show at least one game to avoid things like "(15-14 of 14)". diff --git a/Makefile b/Makefile index 07fdc25..c9add46 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ NAME = dgamelaunch exclusions = CVS .svn .cvsignore tags PREFIX = /usr SBINDIR = $(PREFIX)/sbin -ifeq (PREFIX,/usr) +ifeq ($(PREFIX),/usr) MANDIR = $(PREFIX)/share/man else MANDIR = $(PREFIX)/man diff --git a/dgl-common.c b/dgl-common.c index 727ec1b..4645663 100644 --- a/dgl-common.c +++ b/dgl-common.c @@ -236,7 +236,7 @@ create_config () return; } /* Fill the rest with defaults */ - if (!myconfig->shed_user && myconfig->shed_uid == -1) + if (!myconfig->shed_user && myconfig->shed_uid == (uid_t)-1) { struct passwd *pw; if ((pw = getpwnam(defconfig.shed_user))) @@ -245,7 +245,7 @@ create_config () myconfig->shed_uid = defconfig.shed_uid; } - if (!myconfig->shed_group && myconfig->shed_gid == -1) + if (!myconfig->shed_group && myconfig->shed_gid == (gid_t)-1) { struct group *gr; if ((gr = getgrnam(defconfig.shed_group))) diff --git a/dgl-create-chroot b/dgl-create-chroot index 1efeea0..83dea07 100755 --- a/dgl-create-chroot +++ b/dgl-create-chroot @@ -96,7 +96,7 @@ fi # ...and all the data it needs if [ -n "$playground_var" ]; then - mkdir -p $chroot_path$playground_var/save + mkdir -p $chroot_path$playground_var/save $chroot_path$playground_var/dumps touch $chroot_path$playground_var/record touch $chroot_path$playground_var/perm touch $chroot_path$playground_var/logfile -- 2.47.3