Skip to content

Commit

Permalink
v0.7 - fix compiler warnings, ANSI C compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
abbat committed Jan 7, 2020
1 parent 7407850 commit 711611e
Show file tree
Hide file tree
Showing 6 changed files with 233 additions and 199 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ NAME := timegrep
CC ?= cc
SOURCES := $(NAME).c
OBJECTS := $(NAME).o
CFLAGS := -std=c99 --pedantic -Wall -Werror -O2 -fno-strict-aliasing
CPPFLAGS :=
LDFLAGS := -lpcre -lpthread
CFLAGS := -ansi -pedantic -pedantic-errors -Wall -Werror -Wextra -Wconversion -O2
CPPFLAGS := -D_FILE_OFFSET_BITS=64
LDFLAGS := -lpcre

PREFIX ?= /usr
BINDIR := $(PREFIX)/bin
Expand All @@ -30,7 +30,7 @@ clean:
rm -f $(OBJECTS)

%.o: %.c
$(CC) $(CFLAGS) $< -c -o $@
$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<

install: $(NAME)
mkdir -p $(abspath $(DESTDIR)/$(BINDIR))
Expand Down
2 changes: 1 addition & 1 deletion PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Maintainer: Anton Batenev <antonbatenev@yandex.ru>

pkgname=timegrep
pkgver=0.6
pkgver=0.7
pkgrel=1
pkgdesc='Utility to grep log between two dates or tail last lines to time ago'
arch=('i686' 'x86_64')
Expand Down
7 changes: 7 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
timegrep (0.7) unstable; urgency=low

* Fix PCRE_ERROR_NOMEMORY handler;
* Fix compiler warnings, ANSI C compatible.

-- Anton Batenev <antonbatenev@yandex.ru> Tue, 07 Jan 2020 22:05:50 +0300

timegrep (0.6) unstable; urgency=low

* Fix "Invalid argument" error on empty file.
Expand Down
2 changes: 1 addition & 1 deletion debian/copyright
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Upstream-Name: timegrep
Source: https://github.com/abbat/timegrep

Files: *
Copyright: 2017-2018, Anton Batenev <antonbatenev@yandex.ru>
Copyright: 2017-2020, Anton Batenev <antonbatenev@yandex.ru>
License: BSD

License: BSD
Expand Down
Loading

0 comments on commit 711611e

Please sign in to comment.