image: use protoc instead of protoc-c

The new protoc 1.5.2 reports warnings:
`protoc-c` is deprecated. Please use `protoc` instead!

Signed-off-by: Andrei Vagin <avagin@gmail.com>
This commit is contained in:
Andrei Vagin 2025-05-16 19:26:01 +00:00 committed by Andrei Vagin
parent 1fdff7c7a6
commit 2b8951a9cf
5 changed files with 6 additions and 6 deletions

View file

@ -47,7 +47,7 @@ rpc_pb2.py: rpc.proto
protoc --proto_path=. --python_out=. rpc.proto
rpc.pb-c.c: rpc.proto
protoc-c --proto_path=. --c_out=. rpc.proto
protoc --proto_path=. --c_out=. rpc.proto
clean:
rm -rf build rpc.pb-c.o test-c.o test-c rpc.pb-c.c rpc.pb-c.h rpc_pb2.py rpc_pb2.pyc criu

View file

@ -4,7 +4,7 @@ run: all
./run.sh
unix.pb-c.c: unix.proto
protoc-c --proto_path=. --c_out=. unix.proto
protoc --proto_path=. --c_out=. unix.proto
unix-lib.so: unix-lib.c unix.pb-c.c
gcc -g -Werror -Wall -shared -nostartfiles unix-lib.c unix.pb-c.c -o unix-lib.so -iquote ../../../criu/include -fPIC

View file

@ -734,7 +734,7 @@ criu-rtc.pb-c.c: criu-rtc.proto
$(Q)echo $@ >> .gitignore
$(Q)echo $(@:%.c=%.h) >> .gitignore
$(E) " PBCC " $@
$(Q)protoc-c --proto_path=. --c_out=. criu-rtc.proto
$(Q)protoc --proto_path=. --c_out=. criu-rtc.proto
criu-rtc.so: criu-rtc.c criu-rtc.pb-c.c
$(E) " LD " $@