Skip to content

Commit

Permalink
Merge pull request #1 from mathieuolivari/852d7c4fd19fc5588d5aad919ff…
Browse files Browse the repository at this point in the history
…eb43ad2a5d690

Various fixes for package debianization
  • Loading branch information
razzlefratz committed May 7, 2013
2 parents a95f97e + 852d7c4 commit e4a21ca
Show file tree
Hide file tree
Showing 235 changed files with 171 additions and 173 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
*.[0-9][0-9][0-9]
*.htm
*.html
*.log
*.o
*.pib
Expand Down
2 changes: 1 addition & 1 deletion VisualStudioNET/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ all compile: ${TOOLS}
library:
# install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${BIN}
scripts manuals:
install: compile library
install: $(TOOLS) library
# install -m ${BIN_PERM} -o ${OWNER} -g ${GROUP} ${TOOLS} ${BIN}
uninstall:
# cd ${BIN}; rm -f ${TOOLS}
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions docbook/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ XFLAGS=--skip-validation
# symbols;
# --------------------------------------------------------------------

TRASH=*~ *.[0-9][0-9][0-9] t t.* *.7 *.7a *.1.html *.c.html *.cpp.html *.h.html *.hpp.html *.7.html *.7a.html *.sh.html *.xml.html *.xsd.html ch[0-9][0-9]*.html
TRASH=*~ *.[0-9][0-9][0-9] t t.* *.1 *.1a *.1.html *.c.html *.cpp.html *.h.html *.hpp.html *.1.html *.1a.html *.sh.html *.xml.html *.xsd.html ch[0-9][0-9]*.html
STYLES=param.xsl lists.xsl synop.xsl
BOOKS=index.html

Expand All @@ -33,10 +33,10 @@ manuals:
scripts:
library:
install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${LIBRARY}
install: compile library
install: $(TOOLS) library
if [ -d ${LIBRARY} ]; then install -m ${WWW_PERM} -o ${OWNER} -g ${GROUP} *.html *.css *.png ${LIBRARY}; fi
uninstall:
rm -f ${LIBRARY}/*.c.html ${LIBRARY}/*.h.html ${LIBRARY}/*.7.html
rm -f ${LIBRARY}/*.c.html ${LIBRARY}/*.h.html ${LIBRARY}/*.1.html
setup:
install ${STYLES} ${DOCBOOK}
clean:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions ether/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ LDFLAGS+=
TRASH=*.o *.obj *.exe t t.* *~ *.[0-9][0-9][0-9]
FILES=Makefile *.mak *.sh *.c *.h
TOOLS=efbu efeu efru efsu edru edsu nics
PAGES=efbu.7 efeu.7 efru.7 efsu.7 edru.7 edsu.7 pcapdevs.7 nics.7
PAGES=efbu.1 efeu.1 efru.1 efsu.1 edru.1 edsu.1 pcapdevs.1 nics.1

# ====================================================================
# pseudo targets;
Expand All @@ -31,7 +31,7 @@ library:
scripts:
manuals:
install -m ${MAN_PERM} -o ${OWNER} -g ${GROUP} ${PAGES} ${MAN}
install: compile library
install: $(TOOLS) library
install -m ${SUID_PERM} -o ${OWNER} -g ${GROUP} ${TOOLS} ${BIN}
uninstall:
cd ${BIN}; rm -f ${TOOLS}
Expand Down
2 changes: 1 addition & 1 deletion ether/edru.7 → ether/edru.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH edru 7 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"
.TH edru 1 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"

.SH NAME
edru - Qualcomm Atheros Ethernet II Data Read Utility
Expand Down
2 changes: 1 addition & 1 deletion ether/edsu.7 → ether/edsu.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH edsu 7 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"
.TH edsu 1 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"

.SH NAME
edsu - Qualcomm Atheros Ethernet II Data Send Utility
Expand Down
2 changes: 1 addition & 1 deletion ether/efbu.7 → ether/efbu.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH efbu 7 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"
.TH efbu 1 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"

.SH NAME
efbu - Ethernet Frame Blast Utility
Expand Down
2 changes: 1 addition & 1 deletion ether/efeu.7 → ether/efeu.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH efeu 7 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"
.TH efeu 1 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"

.SH NAME
efeu - HomePlug AV Packet Reflector
Expand Down
2 changes: 1 addition & 1 deletion ether/efru.7 → ether/efru.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH efru 7 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"
.TH efru 1 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"

.SH NAME
efru - HomePlug AV Packet Listener
Expand Down
2 changes: 1 addition & 1 deletion ether/efsu.7 → ether/efsu.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH efsu 7 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"
.TH efsu 1 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"

.SH NAME
efsu - Ethernet Frame Send Utility
Expand Down
2 changes: 1 addition & 1 deletion ether/nics.7 → ether/nics.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH nics 7 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"
.TH nics 1 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"

.SH NAME
nics - Host Network Interface Enumerator
Expand Down
2 changes: 1 addition & 1 deletion ether/pcapdevs.7 → ether/pcapdevs.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH pcapdevs 7 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"
.TH pcapdevs 1 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"

.SH NAME
pcapdevs - Qualcomm Atheros PCAP Device Enumerator
Expand Down
11 changes: 6 additions & 5 deletions key/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,17 @@ include ../make.def

CFLAGS+=
LDFLAGS+=
TRASH=*.o *.obj *.exe t t.* *~ *.[0-9][0-9][0-9]
TOOLS=hpavkey hpavkeys rkey mac2pw mac2pwd libkeys.a
TRASH=*.o *.obj *.exe t t.* *~ *.[0-9][0-9][0-9] *.a
TOOLS=hpavkey hpavkeys rkey mac2pw mac2pwd
LIBS=libkeys.a
FILES=*.c *.h *.sh *.xml *.txt *.mak Makefile Makefile.*
PAGES=hpavkey.7 hpavkeys.7 rkey.7 mac2pw.7 mac2pwd.7
PAGES=hpavkey.1 hpavkeys.1 rkey.1 mac2pw.1 mac2pwd.1

# ====================================================================
# pseudo targets;
# --------------------------------------------------------------------

all compile: ${TOOLS}
all compile: ${TOOLS} ${LIBS}
compact: compile
if [ ! -z ${STRIP} ]; then ${STRIP} ${TOOLS}; fi
if [ -x /usr/local/bin/upx ]; then upx --best ${TOOLS}; fi
Expand All @@ -31,7 +32,7 @@ library:
scripts:
manuals:
install -m ${MAN_PERM} -o ${OWNER} -g ${GROUP} ${PAGES} ${MAN}
install: compile
install: $(TOOLS)
install -m ${BIN_PERM} -o ${OWNER} -g ${GROUP} ${TOOLS} ${BIN}
uninstall:
cd ${BIN}; rm -f ${TOOLS}
Expand Down
2 changes: 1 addition & 1 deletion key/hpavkey.7 → key/hpavkey.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH hpavkey 7 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"
.TH hpavkey 1 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"

.SH NAME
hpavkey - HomePlug AV Key Generator
Expand Down
2 changes: 1 addition & 1 deletion key/hpavkeys.7 → key/hpavkeys.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH hpavkeys 7 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"
.TH hpavkeys 1 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"

.SH NAME
hpavkeys - HomePlug AV Key Generator
Expand Down
2 changes: 1 addition & 1 deletion key/mac2pw.7 → key/mac2pw.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH mac2pw 7 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"
.TH mac2pw 1 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"

.SH NAME
mac2pw - Qualcomm Atheros Ethernet Device Password Generator
Expand Down
2 changes: 1 addition & 1 deletion key/mac2pwd.7 → key/mac2pwd.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH mac2pwd 7 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"
.TH mac2pwd 1 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"

.SH NAME
mac2pwd - Qualcomm Atheros Ethernet Device Password Generator
Expand Down
2 changes: 1 addition & 1 deletion key/rkey.7 → key/rkey.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH rkey 7 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"
.TH rkey 1 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"

.SH NAME
rkey - HomePlug AV Random Key Generator
Expand Down
6 changes: 3 additions & 3 deletions make.def
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ STRIP=$(CROSS)strip
# --------------------------------------------------------------------

BIN=${ROOTFS}/usr/local/bin
MAN=${ROOTFS}/usr/share/man/man7
MAN=${ROOTFS}/usr/share/man/man1
DOC=${ROOTFS}/home/www/software
WWW=${ROOTFS}/home/www
FTP=${ROOTFS}/home/ftp
Expand Down Expand Up @@ -106,6 +106,6 @@ VPATH=../applets:../debian:../docbook:../docbook2:../ether:../key:../mdio:../mme
# --------------------------------------------------------------------

CFLAGS=-Wall -Wextra -Wno-unused-parameter -DMAKEFILE -D__GETOPT_H__ -D_GETOPT_DEFINED_ $(EXTRA_CFLAGS)
CXXFLAGS=-Wall -Wextra -Wno-unused-parameter -DMAKEFILE $(EXTRA_CXX_FLAGS)
LDFLAGS=
CXXFLAGS=-Wall -Wextra -Wno-unused-parameter -DMAKEFILE $(EXTRA_CXXFLAGS)
LDFLAGS=$(EXTRA_LDFLAGS)

4 changes: 2 additions & 2 deletions mdio/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ LDFLAGS+=
TRASH=*.o *.obj *.exe t t.* *~ *.[0-9][0-9][0-9]
FILES=Makefile *.mak *.sh *.c *.h
TOOLS=mdioblock mdioblock2 mdiodump mdiogen
PAGES=mdioblock.7 mdioblock2.7 mdiodump.7
PAGES=mdioblock.1 mdioblock2.1 mdiodump.1

# ====================================================================
# pseudo targets;
Expand All @@ -31,7 +31,7 @@ library:
scripts:
manuals:
install -m ${MAN_PERM} -o ${OWNER} -g ${GROUP} ${PAGES} ${MAN}
install: compile library
install: $(TOOLS) library
install -m ${SUID_PERM} -o ${OWNER} -g ${GROUP} ${TOOLS} ${BIN}
uninstall:
cd ${BIN}; rm -f int6k ${TOOLS}
Expand Down
2 changes: 1 addition & 1 deletion mdio/mdioblock.7 → mdio/mdioblock.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH mdioblock 7 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"
.TH mdioblock 1 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"

.SH NAME
mdioblock - Qualcomm Atheros Clause 22 MDIO Instruction Block Assembler
Expand Down
2 changes: 1 addition & 1 deletion mdio/mdioblock2.7 → mdio/mdioblock2.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH mdioblock2 7 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"
.TH mdioblock2 1 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"

.SH NAME
mdioblock2 - Qualcomm Atheros Clause 45 MDIO Instruction Block Assembler
Expand Down
2 changes: 1 addition & 1 deletion mdio/mdiodump.7 → mdio/mdiodump.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH mdiodump 7 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"
.TH mdiodump 1 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"

.SH NAME
mdiodump - Qualcomm Atheros MDIO Custom Module Analyser
Expand Down
4 changes: 2 additions & 2 deletions mme/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ LDFLAGS+=
TRASH=*.o *.obj *.exe t t.* *~ *.[0-9][0-9][0-9] *.out
FILES=Makefile *.mak *.sh *.txt *.c *.h *.xml *.css
TOOLS=hpav mme
PAGES=hpav.7 mme.7
PAGES=hpav.1 mme.1

# ====================================================================
# pseudo targets;
Expand All @@ -31,7 +31,7 @@ library:
scripts:
manuals:
install -m ${MAN_PERM} -o ${OWNER} -g ${GROUP} ${PAGES} ${MAN}
install: compile library
install: $(TOOLS) library
install -m ${BIN_PERM} -o ${OWNER} -g ${GROUP} ${TOOLS} ${BIN}
uninstall:
cd ${BIN}; rm -f ${TOOLS}
Expand Down
2 changes: 1 addition & 1 deletion mme/hpav.7 → mme/hpav.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH hpav 7 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"
.TH hpav 1 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"

.SH NAME
hpav - HomePlug AV Packet Listener
Expand Down
2 changes: 1 addition & 1 deletion mme/mme.7 → mme/mme.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH mme 7 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"
.TH mme 1 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"

.SH NAME
mme - Qualcomm Atheros vendor-specific message enumerator
Expand Down
2 changes: 1 addition & 1 deletion nodes/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ compact: compile
library:
# install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${BIN}
scripts manuals:
install: compile library
install: $(TOOLS) library
# install -m ${BIN_PERM} -o ${OWNER} -g ${GROUP} ${TOOLS} ${BIN}
uninstall:
# cd ${BIN}; rm -f ${TOOLS}
Expand Down
4 changes: 2 additions & 2 deletions nodes/xmledit.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ static void position (size_t extent)
}
if (offset > extent)
{
error (XML_BAD_OFFSET, EPERM, "%s offset of 0x%04X exceeds " DATA_OBJECT " offset of 0x%04X", member, offset, extent);
error (XML_BAD_OFFSET, EPERM, "%s offset of 0x%04X exceeds " DATA_OBJECT " offset of 0x%04X", member, offset, (unsigned int) extent);
}
if ((offset + length) > extent)
{
error (XML_BAD_EXTENT, EPERM, "%s length of %d bytes exceeds " DATA_OBJECT " length of %d bytes", member, length, extent);
error (XML_BAD_EXTENT, EPERM, "%s length of %d bytes exceeds " DATA_OBJECT " length of "SIZE_T_SPEC" bytes", member, length, extent);
}
return;
}
Expand Down
4 changes: 2 additions & 2 deletions nvm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ LDFLAGS+=
TRASH=*.o *.obj *.exe t t.* *~ *.[0-9][0-9][0-9] *.test *-[0-9][0-9].nvm
FILES=Makefile *.mak *.sh *.txt *.c *.h *.xml *.css
TOOLS=chknvm chknvm2 nvmsplit nvmmerge
PAGES=chknvm.7 chknvm2.7 nvmsplit.7 nvmmerge.7
PAGES=chknvm.1 chknvm2.1 nvmsplit.1 nvmmerge.1

# ====================================================================
# pseudo targets;
Expand All @@ -31,7 +31,7 @@ manuals:
install -m ${MAN_PERM} -o ${OWNER} -g ${GROUP} ${PAGES} ${MAN}
library:
install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${BIN}
install: compile library
install: $(TOOLS) library
install -m ${BIN_PERM} -o ${OWNER} -g ${GROUP} ${TOOLS} ${BIN}
uninstall:
cd ${BIN}; rm -f ${TOOLS}
Expand Down
2 changes: 1 addition & 1 deletion nvm/chknvm.7 → nvm/chknvm.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH chknvm 7 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"
.TH chknvm 1 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"

.SH NAME
chknvm - Qualcomm Atheros PLC Image File Validator
Expand Down
2 changes: 1 addition & 1 deletion nvm/chknvm2.7 → nvm/chknvm2.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH chknvm2 7 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"
.TH chknvm2 1 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"

.SH NAME
chknvm2 - Qualcomm Atheros PLC Image File Validator
Expand Down
2 changes: 1 addition & 1 deletion nvm/manifest.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ signed manifest (void const * memory, size_t extent)
printf ("\t%s: %d\n", nvm_fields [type], data);
break;
case NVM_FIELD_FREE_SPACE:
printf ("\t%s: %d/%d bytes\n", nvm_fields [type], size, extent);
printf ("\t%s: %d/"SIZE_T_SPEC" bytes\n", nvm_fields [type], size, extent);
break;
default:
error (0, 0, "%s: %d", nvm_fields [sizeof (nvm_fields) / sizeof (const char *) - 1], type);
Expand Down
2 changes: 1 addition & 1 deletion nvm/nvmmerge.7 → nvm/nvmmerge.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH nvmmerge 7 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"
.TH nvmmerge 1 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"

.SH NAME
nvmmerge - Qualcomm Atheros PLC Firmware Image File Splicer
Expand Down
2 changes: 1 addition & 1 deletion nvm/nvmsplit.7 → nvm/nvmsplit.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH nvmsplit 7 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"
.TH nvmsplit 1 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"

.SH NAME
nvmsplit - Qualcomm Atheros PLC Firmware Image File Slicer
Expand Down
6 changes: 3 additions & 3 deletions pib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ TRASH=*.o *.obj *.exe t t.* *~ *.[0-9][0-9][0-9] *.test
FILES=Makefile *.mak *.sh *.txt *.c *.h *.xml *.css
TOOLS=chkpib chkpib2 setpib getpib modpib pib2xml pibcomp pibdump pibruin xml2pib psin psout pskey
TOOLS+=psgraph psnotch pibrump
PAGES=chkpib.7 chkpib2.7 setpib.7 getpib.7 modpib.7 pib2xml.7 pibcomp.7 pibdump.7 xml2pib.7 psin.7 psout.7 pskey.7
# PAGES+=pibrump.7 pibruin.7 psgraph.7 psnotch.7
PAGES=chkpib.1 chkpib2.1 setpib.1 getpib.1 modpib.1 pib2xml.1 pibcomp.1 pibdump.1 xml2pib.1 psin.1 psout.1 pskey.1
# PAGES+=pibrump.1 pibruin.1 psgraph.1 psnotch.1

# ====================================================================
# pseudo targets;
Expand All @@ -33,7 +33,7 @@ manuals:
install -m ${MAN_PERM} -o ${OWNER} -g ${GROUP} ${PAGES} ${MAN}
library:
install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${BIN}
install: compile library
install: $(TOOLS) library
install -m ${BIN_PERM} -o ${OWNER} -g ${GROUP} ${TOOLS} ${BIN}
uninstall:
cd ${BIN}; rm -f ${TOOLS}
Expand Down
2 changes: 1 addition & 1 deletion pib/chkpib.7 → pib/chkpib.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH chkpib 7 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"
.TH chkpib 1 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"

.SH NAME
chkpib - Qualcomm Atheros PLC Parameter File Inspector
Expand Down
2 changes: 1 addition & 1 deletion pib/chkpib2.7 → pib/chkpib2.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH chkpib2 7 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"
.TH chkpib2 1 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"

.SH NAME
chkpib2 - Qualcomm Atheros PLC Parameter File Inspector
Expand Down
2 changes: 1 addition & 1 deletion pib/getpib.7 → pib/getpib.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH getpib 7 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"
.TH getpib 1 "March 2013" "plc-utils-2.1.5" "Qualcomm Atheros Powerline Toolkit"

.SH NAME
getpib - Qualcomm Atheros PIB Data Extractor
Expand Down
7 changes: 4 additions & 3 deletions pib/getpib.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include <limits.h>
#include <string.h>
#include <ctype.h>
#include <inttypes.h>

/*====================================================================*
* custom header files;
Expand Down Expand Up @@ -174,7 +175,7 @@ static void getpib (int argc, char const * argv [], byte const * memory, size_t
{
error (1, ECANCELED, "%s exceeds PIB extent " SIZE_T_SPEC, object, extent);
}
printf ("%llu", LE64TOH (* number));
printf ("%" PRIu64, LE64TOH (* number));
memory += sizeof (* number);
extent -= sizeof (* number);
}
Expand Down Expand Up @@ -221,7 +222,7 @@ static void getpib (int argc, char const * argv [], byte const * memory, size_t
{
error (1, ECANCELED, "%s exceeds PIB extent " SIZE_T_SPEC, object, extent);
}
printf ("0x%016LX", LE64TOH (* number));
printf ("0x%016" PRIX64, LE64TOH (* number));
memory += sizeof (* number);
extent -= sizeof (* number);
}
Expand Down Expand Up @@ -435,7 +436,7 @@ int main (int argc, char const * argv [])
offset = (uint32_t)(basespec (* argv, 16, sizeof (uint32_t)));
if (offset > extent)
{
error (1, ECANCELED, "PIB offset " SIZE_T_SPEC " exceeds PIB extent " SIZE_T_SPEC, offset, extent);
error (1, ECANCELED, "PIB offset " SIZE_T_SPEC " exceeds PIB extent " SIZE_T_SPEC, (size_t) offset, (size_t) extent);
}
argc--;
argv++;
Expand Down
Loading

0 comments on commit e4a21ca

Please sign in to comment.