diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-09-02 10:07:49 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-09-02 10:07:49 +0000 |
commit | 38a0a8023026a77ded1e6de618b567c7b58e79a4 (patch) | |
tree | abf5fbbdc4b27a245ff76b9850f4eb6e73e4ba19 /sysutils/upsd/files/patch-misc.c | |
parent | - Fix build with GCRYPT option by taking out -Werror (diff) |
Remove non staged ports without pending PR from s*
Notes
Notes:
svn path=/head/; revision=366980
Diffstat (limited to 'sysutils/upsd/files/patch-misc.c')
-rw-r--r-- | sysutils/upsd/files/patch-misc.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/sysutils/upsd/files/patch-misc.c b/sysutils/upsd/files/patch-misc.c deleted file mode 100644 index 39abcc43c05a..000000000000 --- a/sysutils/upsd/files/patch-misc.c +++ /dev/null @@ -1,47 +0,0 @@ ---- misc.c.orig Sat Aug 3 01:44:24 1996 -+++ misc.c Mon Dec 18 21:03:19 2006 -@@ -27,7 +27,7 @@ - pathname); - return -1; - } -- fprintf(f, "%ld\n", getpid()); -+ fprintf(f, "%u\n", getpid()); - fclose(f); - umask(oldmask); - return 0; -@@ -60,7 +60,7 @@ - { - register char *p; - if((p = malloc(size)) == NULL) { -- syslog(LOG_ERR, "xalloc: cannot allocate %ls bytes: %m", size); -+ syslog(LOG_ERR, "xalloc: cannot allocate %u bytes: %m", size); - return NULL; - } - return p; -@@ -105,7 +105,7 @@ - if(((struct ident *)list)->id == 0) { - return NULL; - } -- (char *)list += size; -+ list += size; - } - return list; - } -@@ -122,7 +122,7 @@ - register void *list; - register size_t size; - { -- for(;((struct ident *)list)->id != 0;(char *)list += size) { -+ for(;((struct ident *)list)->id != 0;list += size) { - if(((struct ident *)list)->name == name) { - return list; - } -@@ -255,7 +255,7 @@ - int - getcurrenttime(void) - { -- if(time(¤t_time) == NULL) { -+ if(time(¤t_time) == -1) { - syslog(LOG_ERR, "cannot get current time: %m"); - return -1; - } |